1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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 18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:clipChildren="false"> 22 23 <LinearLayout 24 android:id="@+id/card_carousel_container" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:layout_marginTop="@dimen/card_carousel_container_margin_top" 28 android:orientation="vertical" 29 android:clipChildren="false" 30 android:visibility="gone"> 31 32 <FrameLayout 33 android:layout_width="match_parent" 34 android:layout_height="48dp"> 35 36 <TextView 37 android:id="@+id/card_label" 38 style="@style/Wallet.TextAppearance" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_gravity="center" 42 android:importantForAccessibility="no" 43 android:drawablePadding="8dp" 44 android:textAlignment="center" /> 45 46 <ImageView 47 android:id="@+id/menu_btn" 48 android:src="@drawable/ic_more_vert" 49 android:layout_gravity="center|end" 50 android:layout_width="@dimen/wallet_menu_btn_size" 51 android:layout_height="@dimen/wallet_menu_btn_size" 52 android:padding="12dp" 53 android:tint="@color/wallet_more_vert" 54 android:contentDescription="@string/accessibility_menu" 55 android:background="?android:attr/selectableItemBackgroundBorderless" 56 android:theme="@style/Wallet.Theme" /> 57 </FrameLayout> 58 59 <com.android.systemui.plugin.globalactions.wallet.WalletCardCarousel 60 android:id="@+id/card_carousel" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:clipChildren="false" 64 android:clipToPadding="false" /> 65 </LinearLayout> 66 67 <include layout="@layout/empty_state_view" /> 68 69 <TextView 70 android:id="@+id/error_view" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="80dp" 74 android:layout_marginHorizontal="40dp" 75 android:textSize="14sp" 76 android:textColor="#DADCE0" 77 android:elevation="7dp" 78 android:background="@drawable/rounded_corners" 79 android:gravity="center" 80 android:visibility="gone" /> 81 82</FrameLayout> 83