| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2021 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:clipChildren="false"> |
| <Toolbar |
| android:id="@+id/action_bar" |
| style="?android:attr/actionBarStyle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@android:color/transparent" |
| android:navigationContentDescription="@null" /> |
| <LinearLayout |
| android:id="@+id/card_carousel_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginTop="48dp" |
| android:orientation="vertical"> |
| <androidx.core.widget.NestedScrollView |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:orientation="vertical"> |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="@dimen/wallet_screen_header_view_size" |
| android:layout_height="@dimen/wallet_screen_header_view_size" |
| android:layout_gravity="center_horizontal" |
| android:layout_marginVertical="10dp" |
| android:scaleType="center" |
| android:contentDescription="@null"/> |
| <TextView |
| android:id="@+id/label" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| style="@style/Wallet.TextAppearance" |
| android:textAlignment="center"/> |
| |
| <com.android.systemui.wallet.ui.WalletCardCarousel |
| android:id="@+id/card_carousel" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:transitionName="dotIndicator" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:layout_marginVertical="24dp"/> |
| <Button |
| android:id="@+id/wallet_action_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal" |
| android:layout_marginVertical="16dp" |
| android:paddingVertical="@dimen/wallet_button_vertical_padding" |
| android:paddingHorizontal="@dimen/wallet_button_horizontal_padding" |
| android:background="@drawable/wallet_action_button_bg" |
| android:textColor="?androidprv:attr/textColorPrimaryInverse" |
| android:textAlignment="center" |
| android:visibility="gone"/> |
| </LinearLayout> |
| </androidx.core.widget.NestedScrollView> |
| <View |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="0.1"/> |
| <Button |
| android:id="@+id/wallet_app_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal" |
| android:paddingVertical="@dimen/wallet_button_vertical_padding" |
| android:paddingHorizontal="@dimen/wallet_button_horizontal_padding" |
| android:background="@drawable/wallet_app_button_bg" |
| android:text="@string/wallet_app_button_label" |
| android:textColor="?androidprv:attr/colorAccentPrimary" |
| android:textAlignment="center" |
| android:layout_marginVertical="24dp"/> |
| </LinearLayout> |
| |
| <include layout="@layout/wallet_empty_state"/> |
| |
| <TextView |
| android:id="@+id/error_view" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="80dp" |
| android:layout_marginHorizontal="40dp" |
| android:textSize="14sp" |
| android:textColor="#DADCE0" |
| android:elevation="7dp" |
| android:background="@drawable/rounded_corners" |
| android:gravity="center" |
| android:visibility="gone"/> |
| </FrameLayout> |