1 <!-- 2 Copyright (C) 2013 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="380dp" 19 android:layout_height="242.25dp" 20 android:layout_gravity="center" 21 android:layout_margin="20dp"> 22 <ImageView 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:src="@drawable/card_background" 26 /> 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:orientation="vertical" 31 android:padding="20dp" 32 android:layout_gravity="center" 33 android:clickable="true"> 34 <TextView 35 android:id="@+id/card_title" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:text="@string/card_title" 39 android:fontFamily="sans-serif-condensed" 40 android:textStyle="bold" 41 android:textSize="32dp" 42 /> 43 <TextView 44 android:id="@+id/card_account_label" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:text="@string/account_number" 48 android:fontFamily="sans-serif" 49 android:textStyle="bold" 50 android:textSize="18dp" 51 android:layout_marginTop="40dp" 52 /> 53 <TextView 54 android:id="@+id/card_account_field" 55 android:width="360dp" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:fontFamily="sans-serif-condensed" 59 android:textStyle="bold" 60 android:textSize="42dp" 61 android:singleLine="true" 62 /> 63 </LinearLayout> 64 </FrameLayout>