CardEmulation / res / layout /

main_fragment.xml

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
 
17
<FrameLayout
18
    xmlns:android="http://schemas.android.com/apk/res/android"
19
    android:layout_width="380dp"
20
    android:layout_height="242.25dp"
21
    android:layout_gravity="center"
22
    android:layout_margin="20dp">
23
    <ImageView
24
        android:layout_width="match_parent"
25
        android:layout_height="match_parent"
26
        android:src="@drawable/card_background"
27
        />
28
    <LinearLayout
29
        android:layout_width="match_parent"
30
        android:layout_height="match_parent"
31
        android:orientation="vertical"
32
        android:padding="20dp"
33
        android:layout_gravity="center"
34
        android:clickable="true">
35
        <TextView
36
            android:id="@+id/card_title"
37
            android:layout_width="wrap_content"
38
            android:layout_height="wrap_content"
39
            android:text="@string/card_title"
40
            android:fontFamily="sans-serif-condensed"
41
            android:textStyle="bold"
42
            android:textSize="32dp"
43
            />
44
        <TextView
45
            android:id="@+id/card_account_label"
46
            android:layout_width="wrap_content"
47
            android:layout_height="wrap_content"
48
            android:text="@string/account_number"
49
            android:fontFamily="sans-serif"
50
            android:textStyle="bold"
51
            android:textSize="18dp"
52
            android:layout_marginTop="40dp"
53
            />
54
        <EditText
55
            android:id="@+id/card_account_field"
56
            android:width="360dp"
57
            android:layout_width="wrap_content"
58
            android:layout_height="wrap_content"
59
            android:fontFamily="sans-serif-condensed"
60
            android:textStyle="bold"
61
            android:textSize="42dp"
62
            android:singleLine="true"
63
            android:inputType="number" />
64
    </LinearLayout>
65
</FrameLayout>