summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorzdi <zdi@codeaurora.org>2016-03-07 17:53:57 +0800
committerzdi <zdi@codeaurora.org>2016-03-10 10:00:05 +0800
commit7d9dd17cb390804052d23859dc4cfcc4bf293488 (patch)
treeaa92d6d11f5fcb8a47883eec8e3137ce1491980a /res
parentee586846cc5e3916398dc25fe59ed9f2601a4790 (diff)
downloadandroid_packages_apps_Gallery2-7d9dd17cb390804052d23859dc4cfcc4bf293488.tar.gz
android_packages_apps_Gallery2-7d9dd17cb390804052d23859dc4cfcc4bf293488.tar.bz2
android_packages_apps_Gallery2-7d9dd17cb390804052d23859dc4cfcc4bf293488.zip
Gallery2: Modify the UI of audio effect.
Modify the UI of audio effect according to UX specification document. Change-Id: I03b337290f4d8dbf3600ee04c3796a5883c03046 CRs-Fixed: 986763
Diffstat (limited to 'res')
-rwxr-xr-x[-rw-r--r--]res/drawable-hdpi/knob.pngbin51511 -> 5435 bytes
-rw-r--r--res/drawable-hdpi/switch_thumb_activated.9.pngbin5117 -> 0 bytes
-rwxr-xr-xres/drawable-hdpi/switch_thumb_activated.pngbin0 -> 2594 bytes
-rw-r--r--res/drawable-hdpi/switch_thumb_off.9.pngbin5098 -> 0 bytes
-rwxr-xr-xres/drawable-hdpi/switch_thumb_off.pngbin0 -> 2549 bytes
-rw-r--r--res/layout/audio_effects_dialog.xml57
-rw-r--r--res/layout/audio_effects_title.xml10
7 files changed, 47 insertions, 20 deletions
diff --git a/res/drawable-hdpi/knob.png b/res/drawable-hdpi/knob.png
index 1eba937fe..213c20010 100644..100755
--- a/res/drawable-hdpi/knob.png
+++ b/res/drawable-hdpi/knob.png
Binary files differ
diff --git a/res/drawable-hdpi/switch_thumb_activated.9.png b/res/drawable-hdpi/switch_thumb_activated.9.png
deleted file mode 100644
index 072aa649c..000000000
--- a/res/drawable-hdpi/switch_thumb_activated.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/switch_thumb_activated.png b/res/drawable-hdpi/switch_thumb_activated.png
new file mode 100755
index 000000000..5d6c7d8eb
--- /dev/null
+++ b/res/drawable-hdpi/switch_thumb_activated.png
Binary files differ
diff --git a/res/drawable-hdpi/switch_thumb_off.9.png b/res/drawable-hdpi/switch_thumb_off.9.png
deleted file mode 100644
index 45786a309..000000000
--- a/res/drawable-hdpi/switch_thumb_off.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/switch_thumb_off.png b/res/drawable-hdpi/switch_thumb_off.png
new file mode 100755
index 000000000..733cef674
--- /dev/null
+++ b/res/drawable-hdpi/switch_thumb_off.png
Binary files differ
diff --git a/res/layout/audio_effects_dialog.xml b/res/layout/audio_effects_dialog.xml
index 49dcafb56..b2143d643 100644
--- a/res/layout/audio_effects_dialog.xml
+++ b/res/layout/audio_effects_dialog.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
-Copyright (c) 2013, The Linux Foundation. All rights reserved.
+Copyright (c) 2013, 2016, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -40,33 +40,58 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
- android:paddingBottom="10dp">
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp">
- <LinearLayout
+ <RelativeLayout
android:id="@+id/aEffectsPanel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
android:layout_marginTop="12dp"
android:layout_marginBottom="10dp"
android:gravity="center_vertical">
- <com.android.gallery3d.ui.Knob
- android:id="@+id/bBStrengthKnob"
+ <RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
- custom:label="@string/bass_boost_strength"
- custom:foreground="@drawable/knob" />
+ android:layout_weight="1">
+ <com.android.gallery3d.ui.Knob
+ android:id="@+id/bBStrengthKnob"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ custom:foreground="@drawable/knob"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_below="@id/bBStrengthKnob"
+ android:layout_marginTop="12dp"
+ android:textColor="@android:color/black"
+ android:text="@string/bass_boost_strength"/>
+ </RelativeLayout>
- <com.android.gallery3d.ui.Knob
- android:id="@+id/vIStrengthKnob"
+ <RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
- custom:label="@string/virtualizer_strength"
- custom:foreground="@drawable/knob" />
-
- </LinearLayout>
+ android:layout_marginEnd="24dp"
+ android:layout_alignParentRight="true"
+ android:layout_weight="1">
+ <com.android.gallery3d.ui.Knob
+ android:id="@+id/vIStrengthKnob"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ custom:foreground="@drawable/knob"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/vIStrengthKnob"
+ android:layout_marginTop="12dp"
+ android:layout_centerHorizontal="true"
+ android:textColor="@android:color/black"
+ android:text="@string/virtualizer_strength"/>
+ </RelativeLayout>
+ </RelativeLayout>
</LinearLayout>
</LinearLayout>
diff --git a/res/layout/audio_effects_title.xml b/res/layout/audio_effects_title.xml
index fcfb11d1e..2e200d5aa 100644
--- a/res/layout/audio_effects_title.xml
+++ b/res/layout/audio_effects_title.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
-Copyright (c) 2014, The Linux Foundation. All rights reserved.
+Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -40,9 +40,10 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
android:gravity="left|center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="10dp"
+ android:layout_marginStart="24dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
+ android:textColor="@android:color/black"
android:textSize="20dp" />
<View
@@ -54,7 +55,8 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
android:id="@+id/audio_effects_switch"
android:textOn=""
android:textOff=""
+ android:background="@null"
+ android:gravity="center_vertical|right"
android:layout_width="72dp"
- android:layout_height="34dp"
- android:layout_marginEnd="4dp"/>
+ android:layout_height="34dp"/>
</LinearLayout>