summaryrefslogtreecommitdiffstats
path: root/res/layout/autofill_settings_fragment.xml
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-09-10 22:09:30 +0100
committerBen Murdoch <benm@google.com>2010-10-06 11:37:57 +0100
commitaf55452d7f37c20201663b80ca77b64457323361 (patch)
treee5eea2b93464fdd5a121fcaf07e636b8ffa497bc /res/layout/autofill_settings_fragment.xml
parent3d4e011ab9f87ff7f1b467ed7d92c6d89157d192 (diff)
downloadpackages_apps_browser-af55452d7f37c20201663b80ca77b64457323361.zip
packages_apps_browser-af55452d7f37c20201663b80ca77b64457323361.tar.gz
packages_apps_browser-af55452d7f37c20201663b80ca77b64457323361.tar.bz2
AutoFill Profile editor UI initial checkin
Make a start on a simple AutoFill profile editor so that we can get rid of the default John Smith profile we've been using for testing. This CL also moves the autofill settings from the Privacy Preferences page to the Personal Preferences page. Note that this is just the profile editor in the Browser and although the data entered is persisted to disk, it is not yet synced with the native AutoFill code so for now we continue to use the canned profile native side. Change-Id: Ie609c5f25fffc914267605efdb10444379c29388
Diffstat (limited to 'res/layout/autofill_settings_fragment.xml')
-rw-r--r--res/layout/autofill_settings_fragment.xml71
1 files changed, 71 insertions, 0 deletions
diff --git a/res/layout/autofill_settings_fragment.xml b/res/layout/autofill_settings_fragment.xml
new file mode 100644
index 0000000..35dfbe6
--- /dev/null
+++ b/res/layout/autofill_settings_fragment.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+<TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:text="@string/pref_autofill_profile_editor" />
+
+<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:stretchColumns="1"
+ android:paddingLeft="100dip"
+ android:paddingRight="100dip" >
+
+ <TableRow>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:padding="10dip"
+ 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:textAppearance="?android:attr/textAppearanceMedium"
+ android:singleLine="true" />
+ </TableRow>
+ <TableRow>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:padding="10dip"
+ 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:textAppearance="?android:attr/textAppearanceMedium"
+ android:singleLine="true" />
+ </TableRow>
+</TableLayout>
+
+<Button
+ android:id="@+id/autofill_profile_editor_save_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/autofill_profile_editor_save_profile"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+</LinearLayout>