summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-03-17 20:06:39 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-03-17 20:06:39 -0700
commit9fe15876a0ae3ba8526f2583e81a7ea78a84d888 (patch)
treeba4389f54d241dfa6fc10fe0ba34437bb78e98e7 /res/layout
parentcb9978133b5489f506e78c63cfcb7bc2c7bb552f (diff)
parent7d9dd17cb390804052d23859dc4cfcc4bf293488 (diff)
downloadandroid_packages_apps_Gallery2-9fe15876a0ae3ba8526f2583e81a7ea78a84d888.tar.gz
android_packages_apps_Gallery2-9fe15876a0ae3ba8526f2583e81a7ea78a84d888.tar.bz2
android_packages_apps_Gallery2-9fe15876a0ae3ba8526f2583e81a7ea78a84d888.zip
Merge "Gallery2: Modify the UI of audio effect." into android_ui.lnx.1.2-dev
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/audio_effects_dialog.xml57
-rw-r--r--res/layout/audio_effects_title.xml10
2 files changed, 47 insertions, 20 deletions
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>