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