1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2017 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    android:layout_width="wrap_content"
21    android:layout_height="match_parent"
22    android:focusable="true"
23    android:focusableInTouchMode="true"
24    android:orientation="vertical" >
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:orientation="horizontal" >
30
31        <TextView
32            android:id="@+id/cc_number_label"
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:text="CC Number" />
36
37        <EditText
38            android:id="@+id/cc_number"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:text="4815162342" />
42            />
43    </LinearLayout>
44
45    <LinearLayout
46        android:layout_width="match_parent"
47        android:layout_height="wrap_content"
48        android:orientation="horizontal" >
49
50        <TextView
51            android:id="@+id/cc_expiration_label"
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content"
54            android:text="Expiration" />
55
56        <Spinner
57            android:id="@+id/cc_expiration"
58            android:layout_width="fill_parent"
59            android:layout_height="wrap_content"
60            />
61    </LinearLayout>
62
63    <LinearLayout
64        android:layout_width="match_parent"
65        android:layout_height="wrap_content"
66        android:orientation="horizontal" >
67
68        <TextView
69            android:id="@+id/address_label"
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            android:text="Address" />
73
74        <RadioGroup
75            android:id="@+id/address"
76            android:layout_width="fill_parent"
77            android:layout_height="wrap_content"
78            android:orientation="vertical"
79            android:checkedButton="@+id/home_address">
80
81            <RadioButton
82                android:id="@+id/home_address"
83                android:layout_width="wrap_content"
84                android:layout_height="wrap_content"
85                android:text="Home"/>
86
87            <RadioButton
88                android:id="@+id/work_address"
89                android:layout_width="wrap_content"
90                android:layout_height="wrap_content"
91                android:text="Work" />
92        </RadioGroup>
93    </LinearLayout>
94
95    <CheckBox
96        android:id="@+id/save_cc"
97        android:layout_width="match_parent"
98        android:layout_height="wrap_content"
99        android:text="Save CC?"
100        android:checked="true"/>
101
102    <LinearLayout
103        android:layout_width="match_parent"
104        android:layout_height="wrap_content"
105        android:orientation="horizontal" >
106
107        <Button
108            android:id="@+id/clear"
109            android:layout_width="wrap_content"
110            android:layout_height="wrap_content"
111            android:text="Clear" />
112
113        <Button
114            android:id="@+id/buy"
115            android:layout_width="wrap_content"
116            android:layout_height="wrap_content"
117            android:text="Buy it" />
118    </LinearLayout>
119
120</LinearLayout>