1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2021 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:clipChildren="false"> 24 <Toolbar 25 android:id="@+id/action_bar" 26 style="?android:attr/actionBarStyle" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:background="@android:color/transparent" 30 android:navigationContentDescription="@null"> 31 <Button 32 android:id="@+id/wallet_toolbar_app_button" 33 android:layout_width="wrap_content" 34 android:layout_height="30dp" 35 android:layout_gravity="end|center_horizontal" 36 android:paddingHorizontal="@dimen/wallet_button_horizontal_padding" 37 android:background="@drawable/wallet_app_button_bg" 38 android:text="@string/wallet_app_button_label" 39 android:textColor="?androidprv:attr/colorAccentPrimary" 40 android:textAlignment="center" 41 android:visibility="gone"/> 42 </Toolbar> 43 <LinearLayout 44 android:id="@+id/card_carousel_container" 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:layout_marginTop="@dimen/wallet_card_carousel_container_top_margin" 48 android:orientation="vertical"> 49 <androidx.core.widget.NestedScrollView 50 android:layout_width="match_parent" 51 android:layout_height="0dp" 52 android:layout_weight="1"> 53 <LinearLayout 54 android:layout_width="match_parent" 55 android:layout_height="0dp" 56 android:orientation="vertical"> 57 <ImageView 58 android:id="@+id/icon" 59 android:layout_width="@dimen/wallet_screen_header_view_size" 60 android:layout_height="@dimen/wallet_screen_header_view_size" 61 android:layout_gravity="center_horizontal" 62 android:layout_marginVertical="10dp" 63 android:scaleType="center" 64 android:contentDescription="@null"/> 65 <TextView 66 android:id="@+id/label" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_marginBottom="24dp" 70 android:layout_marginHorizontal="48dp" 71 android:textColor="?androidprv:attr/textColorPrimary" 72 android:textAlignment="center"/> 73 74 <include layout="@layout/wallet_empty_state"/> 75 76 <com.android.systemui.wallet.ui.WalletCardCarousel 77 android:id="@+id/card_carousel" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:transitionName="dotIndicator" 81 android:clipChildren="false" 82 android:clipToPadding="false" 83 android:layout_marginBottom="24dp"/> 84 <Button 85 android:id="@+id/wallet_action_button" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_gravity="center_horizontal" 89 android:layout_marginVertical="16dp" 90 android:paddingVertical="@dimen/wallet_button_vertical_padding" 91 android:paddingHorizontal="@dimen/wallet_button_horizontal_padding" 92 android:background="@drawable/wallet_action_button_bg" 93 android:textColor="?androidprv:attr/textColorPrimaryInverse" 94 android:textAlignment="center" 95 android:visibility="gone"/> 96 </LinearLayout> 97 </androidx.core.widget.NestedScrollView> 98 <View 99 android:id="@+id/dynamic_placeholder" 100 android:layout_width="match_parent" 101 android:layout_height="0dp" 102 android:layout_weight="0.1"/> 103 <Button 104 android:id="@+id/wallet_app_button" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_gravity="center_horizontal" 108 android:paddingVertical="@dimen/wallet_button_vertical_padding" 109 android:paddingHorizontal="@dimen/wallet_button_horizontal_padding" 110 android:background="@drawable/wallet_app_button_bg" 111 android:text="@string/wallet_app_button_label" 112 android:textColor="?androidprv:attr/colorAccentPrimary" 113 android:textAlignment="center" 114 android:layout_marginVertical="24dp"/> 115 </LinearLayout> 116 117 <TextView 118 android:id="@+id/error_view" 119 android:layout_width="match_parent" 120 android:layout_height="wrap_content" 121 android:layout_marginTop="80dp" 122 android:layout_marginHorizontal="40dp" 123 android:textSize="14sp" 124 android:textColor="#DADCE0" 125 android:elevation="7dp" 126 android:background="@drawable/rounded_corners" 127 android:gravity="center" 128 android:visibility="gone"/> 129</FrameLayout> 130