diff options
author | nicolasroard <nicolasroard@google.com> | 2013-07-15 11:24:36 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-07-30 11:28:59 -0700 |
commit | 430d25bfc7d78f03f3f7007edfddc8d15fb8c5c9 (patch) | |
tree | 84667c50526cde6234d3f69c1753e0ec3ea07bc6 /res | |
parent | 2e5fe3fc3b6381456ab8e009f4270b1f4c42e53d (diff) | |
download | android_packages_apps_Snap-430d25bfc7d78f03f3f7007edfddc8d15fb8c5c9.tar.gz android_packages_apps_Snap-430d25bfc7d78f03f3f7007edfddc8d15fb8c5c9.tar.bz2 android_packages_apps_Snap-430d25bfc7d78f03f3f7007edfddc8d15fb8c5c9.zip |
Add user presets saving/loading
Change-Id: I85c5dd0df1e9264a01c8d7a6d44602e87799890c
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/filtershow_presets_management_dialog.xml | 66 | ||||
-rw-r--r-- | res/layout/filtershow_presets_management_row.xml | 51 | ||||
-rw-r--r-- | res/menu/filtershow_activity_menu.xml | 5 | ||||
-rw-r--r-- | res/values/filtershow_strings.xml | 7 |
4 files changed, 129 insertions, 0 deletions
diff --git a/res/layout/filtershow_presets_management_dialog.xml b/res/layout/filtershow_presets_management_dialog.xml new file mode 100644 index 000000000..f6c6fb764 --- /dev/null +++ b/res/layout/filtershow_presets_management_dialog.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:divider="?android:dividerVertical" + android:showDividers="middle"> + + <ListView + android:id="@+id/listItems" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dip" + android:divider="@android:color/transparent" + android:dividerHeight="8dip"/> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + style="?android:attr/buttonBarStyle"> + + <Button + android:id="@+id/cancel" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:text="@string/cancel" + 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" + android:layout_weight="1" + android:text="@string/ok" + style="?android:attr/buttonBarButtonStyle"/> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_presets_management_row.xml b/res/layout/filtershow_presets_management_row.xml new file mode 100644 index 000000000..648e8746b --- /dev/null +++ b/res/layout/filtershow_presets_management_row.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imageView" + android:layout_weight=".1" + android:layout_width="80dip" + android:layout_height="80dip" + android:scaleType="fitCenter" + android:layout_gravity="left|center_vertical"/> + + <EditText + android:id="@+id/editView" + android:gravity="center" + android:textSize="18sp" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:focusable="true" + android:imeOptions="actionDone" + android:singleLine="true"/> + + <ImageButton + android:id="@+id/deleteUserPreset" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="right|center_vertical" + android:background="@android:color/transparent" + android:layout_weight=".1" + android:gravity="center" + android:src="@drawable/ic_menu_trash_holo_light"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/menu/filtershow_activity_menu.xml b/res/menu/filtershow_activity_menu.xml index cf083de9f..09c6ffe57 100644 --- a/res/menu/filtershow_activity_menu.xml +++ b/res/menu/filtershow_activity_menu.xml @@ -25,6 +25,11 @@ android:visible="true" android:title="@string/show_imagestate_panel" /> <item + android:id="@+id/manageUserPresets" + android:showAsAction="never" + android:visible="true" + android:title="@string/filtershow_manage_preset" /> + <item android:id="@+id/exportFlattenButton" android:showAsAction="never" android:visible="true" diff --git a/res/values/filtershow_strings.xml b/res/values/filtershow_strings.xml index a5c3dc8c4..a820871c6 100644 --- a/res/values/filtershow_strings.xml +++ b/res/values/filtershow_strings.xml @@ -221,4 +221,11 @@ <!-- Label for the notification message [CHAR LIMIT=50] --> <string name="filtershow_notification_message">Processing...</string> + <!-- Label for the save preset menu [CHAR LIMIT=30] --> + <string name="filtershow_save_preset">Save current preset</string> + <!-- Label for the manage preset menu [CHAR LIMIT=30] --> + <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> + </resources> |