autofill_settings_fragment.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2010 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:orientation="vertical">
  17. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:layout_width="match_parent"
  19. android:layout_height="0px"
  20. android:layout_weight="1">
  21. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:orientation="vertical">
  25. <View
  26. android:layout_height="10dip"
  27. android:layout_width="match_parent" />
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:textAppearance="?android:attr/textAppearanceMedium"
  32. android:text="@string/autofill_profile_editor_heading" />
  33. <View
  34. android:layout_height="12dip"
  35. android:layout_width="match_parent" />
  36. <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:shrinkColumns="1"
  40. android:stretchColumns="1">
  41. <TableRow>
  42. <TextView
  43. style="@style/AutofillProfileTextView"
  44. android:text="@string/autofill_profile_editor_name" />
  45. <EditText android:id="@+id/autofill_profile_editor_name_edit"
  46. style="@style/AutofillProfileEditText"
  47. android:inputType="textPersonName|textCapWords" />
  48. </TableRow>
  49. <TableRow>
  50. <TextView
  51. style="@style/AutofillProfileTextView"
  52. android:text="@string/autofill_profile_editor_company_name" />
  53. <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
  54. style="@style/AutofillProfileEditText"
  55. android:inputType="textCapWords" />
  56. </TableRow>
  57. <TableRow>
  58. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_margin="2dip"
  62. android:orientation="vertical">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:gravity="center_vertical"
  67. android:textAppearance="?android:attr/textAppearanceMedium"
  68. android:text="@string/autofill_profile_editor_address_line_1" />
  69. <TextView
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:gravity="center_vertical"
  73. android:textAppearance="?android:attr/textAppearanceSmall"
  74. android:text="@string/autofill_profile_editor_address_line_1_hint" />
  75. </LinearLayout>
  76. <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
  77. style="@style/AutofillProfileEditText"
  78. android:inputType="textCapWords" />
  79. </TableRow>
  80. <TableRow>
  81. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_margin="2dip"
  85. android:orientation="vertical">
  86. <TextView
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:gravity="center_vertical"
  90. android:textAppearance="?android:attr/textAppearanceMedium"
  91. android:text="@string/autofill_profile_editor_address_line_2" />
  92. <TextView
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:gravity="center_vertical"
  96. android:textAppearance="?android:attr/textAppearanceSmall"
  97. android:text="@string/autofill_profile_editor_address_line_2_hint" />
  98. </LinearLayout>
  99. <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
  100. style="@style/AutofillProfileEditText"
  101. android:inputType="textCapWords" />
  102. </TableRow>
  103. <TableRow>
  104. <TextView
  105. style="@style/AutofillProfileTextView"
  106. android:text="@string/autofill_profile_editor_city" />
  107. <EditText android:id="@+id/autofill_profile_editor_city_edit"
  108. style="@style/AutofillProfileEditText"
  109. android:inputType="textCapWords" />
  110. </TableRow>
  111. <TableRow>
  112. <TextView
  113. style="@style/AutofillProfileTextView"
  114. android:text="@string/autofill_profile_editor_state" />
  115. <EditText android:id="@+id/autofill_profile_editor_state_edit"
  116. style="@style/AutofillProfileEditText"
  117. android:inputType="textCapWords" />
  118. </TableRow>
  119. <TableRow>
  120. <TextView
  121. style="@style/AutofillProfileTextView"
  122. android:text="@string/autofill_profile_editor_zip_code" />
  123. <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
  124. style="@style/AutofillProfileEditText"
  125. android:inputType="textCapCharacters" />
  126. </TableRow>
  127. <TableRow>
  128. <TextView
  129. style="@style/AutofillProfileTextView"
  130. android:text="@string/autofill_profile_editor_country" />
  131. <EditText android:id="@+id/autofill_profile_editor_country_edit"
  132. style="@style/AutofillProfileEditText"
  133. android:inputType="textCapWords" />
  134. </TableRow>
  135. <TableRow>
  136. <TextView
  137. style="@style/AutofillProfileTextView"
  138. android:text="@string/autofill_profile_editor_phone_number" />
  139. <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
  140. style="@style/AutofillProfileEditText"
  141. android:phoneNumber="true" />
  142. </TableRow>
  143. <TableRow>
  144. <TextView
  145. style="@style/AutofillProfileTextView"
  146. android:text="@string/autofill_profile_editor_email_address" />
  147. <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
  148. style="@style/AutofillProfileEditText"
  149. android:inputType="textEmailAddress"
  150. android:imeOptions="actionDone|flagNoExtractUi" />
  151. </TableRow>
  152. </TableLayout>
  153. </LinearLayout>
  154. </ScrollView>
  155. </LinearLayout>