summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-08-14 10:04:37 -0700
committernicolasroard <nicolasroard@google.com>2013-08-14 10:04:37 -0700
commit0a24e52185c4e88dd52b8e072cf7cd1d04f74b0a (patch)
tree752fae3c6a1e9f2ebe31524d1f766c03a4033ac5 /res
parent2e1bc2e37f285bfaf302a0533a372d4373474d9c (diff)
downloadandroid_packages_apps_Gallery2-0a24e52185c4e88dd52b8e072cf7cd1d04f74b0a.tar.gz
android_packages_apps_Gallery2-0a24e52185c4e88dd52b8e072cf7cd1d04f74b0a.tar.bz2
android_packages_apps_Gallery2-0a24e52185c4e88dd52b8e072cf7cd1d04f74b0a.zip
Clean up user preset dialog
Change-Id: Idefafe3a877e8a0cf25ca955f689818e193fde72
Diffstat (limited to 'res')
-rw-r--r--res/layout/filtershow_presets_management_dialog.xml36
-rw-r--r--res/layout/filtershow_presets_management_row.xml3
-rw-r--r--res/values/filtershow_strings.xml2
3 files changed, 26 insertions, 15 deletions
diff --git a/res/layout/filtershow_presets_management_dialog.xml b/res/layout/filtershow_presets_management_dialog.xml
index f6c6fb764..68754e2ba 100644
--- a/res/layout/filtershow_presets_management_dialog.xml
+++ b/res/layout/filtershow_presets_management_dialog.xml
@@ -22,14 +22,30 @@
android:divider="?android:dividerVertical"
android:showDividers="middle">
- <ListView
- android:id="@+id/listItems"
- android:orientation="vertical"
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_margin="8dip">
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text="@string/filtershow_preset_name"
+ android:layout_margin="8dp"
+ />
+
+ <EditText
+ android:id="@+id/editView"
+ android:gravity="center"
+ android:textSize="18sp"
+ android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dip"
- android:divider="@android:color/transparent"
- android:dividerHeight="8dip"/>
+ android:focusable="true"
+ android:imeOptions="actionDone"
+ android:singleLine="true"/>
+ </LinearLayout>
<LinearLayout
android:orientation="horizontal"
@@ -46,14 +62,6 @@
style="?android:attr/buttonBarButtonStyle" />
<Button
- android:id="@+id/addpreset"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:text="@string/filtershow_save_preset"
- style="?android:attr/buttonBarButtonStyle"/>
-
- <Button
android:id="@+id/ok"
android:layout_width="0dp"
android:layout_height="match_parent"
diff --git a/res/layout/filtershow_presets_management_row.xml b/res/layout/filtershow_presets_management_row.xml
index 648e8746b..bd3e47928 100644
--- a/res/layout/filtershow_presets_management_row.xml
+++ b/res/layout/filtershow_presets_management_row.xml
@@ -47,5 +47,6 @@
android:background="@android:color/transparent"
android:layout_weight=".1"
android:gravity="center"
- android:src="@drawable/ic_menu_trash_holo_light"/>
+ android:src="@drawable/ic_menu_trash_holo_light"
+ android:visibility="gone"/>
</LinearLayout> \ No newline at end of file
diff --git a/res/values/filtershow_strings.xml b/res/values/filtershow_strings.xml
index 4d84007fb..6c8bbc279 100644
--- a/res/values/filtershow_strings.xml
+++ b/res/values/filtershow_strings.xml
@@ -257,6 +257,8 @@
<string name="filtershow_manage_preset">Manage user presets</string>
<!-- Label for newly created user preset [CHAR LIMIT=30] -->
<string name="filtershow_new_preset">New Preset</string>
+ <!-- Label for preset name [CHAR LIMIT=30] -->
+ <string name="filtershow_preset_name">Preset Name</string>
<!-- Label for showing the image information panel [CHAR LIMIT=50] -->
<string name="filtershow_show_info_panel">Information</string>