summaryrefslogtreecommitdiffstats
path: root/res/layout/autofill_settings_fragment.xml
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-12-07 11:48:46 +0000
committerBen Murdoch <benm@google.com>2010-12-07 19:07:48 +0000
commit4db3a2c411903a61644782c628ace3894f5340a6 (patch)
tree2759ea2a0aaf5d46dd92b8006f9769bb32373883 /res/layout/autofill_settings_fragment.xml
parent2cd9701de79c8e4e37971498b91ff2530bc58694 (diff)
downloadpackages_apps_Browser-4db3a2c411903a61644782c628ace3894f5340a6.zip
packages_apps_Browser-4db3a2c411903a61644782c628ace3894f5340a6.tar.gz
packages_apps_Browser-4db3a2c411903a61644782c628ace3894f5340a6.tar.bz2
Tidy up autofill UI.
Removes some unnecessary attributes and squashes a little bit so that we don't need to scroll the editor to see the buttons in landscape. Also update some strings. Change-Id: I3d310d48947fed128ae2a24476e33daa3786b8a9
Diffstat (limited to 'res/layout/autofill_settings_fragment.xml')
-rw-r--r--res/layout/autofill_settings_fragment.xml100
1 files changed, 43 insertions, 57 deletions
diff --git a/res/layout/autofill_settings_fragment.xml b/res/layout/autofill_settings_fragment.xml
index b0e0f53..ca74e9a 100644
--- a/res/layout/autofill_settings_fragment.xml
+++ b/res/layout/autofill_settings_fragment.xml
@@ -16,8 +16,7 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fillViewport="true">
+ android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
@@ -27,8 +26,8 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:text="@string/pref_autofill_profile_editor" />
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="@string/autofill_profile_editor_heading" />
<View
android:layout_height="20dip"
@@ -37,52 +36,47 @@
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
android:shrinkColumns="1"
android:stretchColumns="1">
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_name" />
<EditText android:id="@+id/autofill_profile_editor_name_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="textPersonName|textCapWords"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_company_name" />
<EditText android:id="@+id/autofill_profile_editor_company_name_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="textCapWords"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
@@ -98,20 +92,17 @@
android:text="@string/autofill_profile_editor_address_line_1_hint" />
</LinearLayout>
<EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="textCapWords"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
@@ -129,115 +120,110 @@
<EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="bottom"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="textCapWords"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_city" />
<EditText android:id="@+id/autofill_profile_editor_city_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:inputType="textCapWords"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_state" />
<EditText android:id="@+id/autofill_profile_editor_state_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:inputType="textCapWords"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_zip_code" />
<EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:inputType="textCapCharacters"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_country" />
<EditText android:id="@+id/autofill_profile_editor_country_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:inputType="textCapWords"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_phone_number" />
<EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true"
android:phoneNumber="true" />
</TableRow>
- <TableRow
- android:layout_height="match_parent"
- android:layout_weight="1">
+ <TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
- android:padding="10dip"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/autofill_profile_editor_email_address" />
<EditText android:id="@+id/autofill_profile_editor_email_address_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="10dip"
+ android:gravity="center_vertical"
+ android:layout_margin="2dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="textEmailAddress"
android:singleLine="true" />