summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-08-01 19:05:18 -0700
committerRuben Brunk <rubenbrunk@google.com>2013-08-02 09:48:38 -0700
commit5ba2436722006a3c66cb9aa6654a355af0250ef6 (patch)
tree0101573159c8721f2090ec194d650c5e69ca96c4 /res
parent56f769814f4bbcdd8b08b98cbd75711fe64d50db (diff)
downloadandroid_packages_apps_Snap-5ba2436722006a3c66cb9aa6654a355af0250ef6.tar.gz
android_packages_apps_Snap-5ba2436722006a3c66cb9aa6654a355af0250ef6.tar.bz2
android_packages_apps_Snap-5ba2436722006a3c66cb9aa6654a355af0250ef6.zip
Add quality selector to export.
- Adds the option to change the quality of the jpeg compression when flattening an exported bitmap. Change-Id: I252913fc15ff32a0fcff683edb5b33e17b5daac4
Diffstat (limited to 'res')
-rw-r--r--res/layout/filtershow_export_dialog.xml80
-rw-r--r--res/values/filtershow_strings.xml4
2 files changed, 84 insertions, 0 deletions
diff --git a/res/layout/filtershow_export_dialog.xml b/res/layout/filtershow_export_dialog.xml
new file mode 100644
index 000000000..202107504
--- /dev/null
+++ b/res/layout/filtershow_export_dialog.xml
@@ -0,0 +1,80 @@
+<?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">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal|center_vertical"
+ android:layout_margin="7dp"
+ android:text="@string/select_compression"/>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <SeekBar
+ android:id="@+id/qualitySeekBar"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="3"
+ android:layout_margin="7dp"
+ android:max="100"
+ android:progress="100"/>
+
+ <TextView
+ android:id="@+id/qualityTextView"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginLeft="7dp"
+ android:layout_gravity="center_vertical|center_horizontal"/>
+
+ </LinearLayout>
+
+ <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/done"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="@string/done"
+ style="?android:attr/buttonBarButtonStyle"/>
+
+ </LinearLayout>
+
+</LinearLayout>
diff --git a/res/values/filtershow_strings.xml b/res/values/filtershow_strings.xml
index 68eca34f3..c4546c89e 100644
--- a/res/values/filtershow_strings.xml
+++ b/res/values/filtershow_strings.xml
@@ -49,6 +49,10 @@
<string name="hide_imagestate_panel">Hide Applied Effects</string>
<!-- Text for the menu item to export a flattened photo[CHAR LIMIT=30] -->
<string name="export_flattened">Export Flattened Image</string>
+ <!-- Text for selecting export image quality [CHAR LIMIT=100] -->
+ <string name="select_compression">Select output quality.</string>
+ <!-- Text for quality value tag [CHAR LIMIT=30] -->
+ <string name="quality">Quality</string>
<!-- Name for the overflow menu item for settings [CHAR LIMIT=20] -->
<string name="menu_settings">Settings</string>