summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2011-08-18 11:13:20 -0700
committerMarco Nelissen <marcone@google.com>2011-08-18 15:28:00 -0700
commite7de651d5cf0c53340bd4502813ccfb3096dff9e (patch)
tree0c64ad0be36b47a3a005c66c5f17c9f429d89982 /res/layout
parent7549b66c39d9dc15ae7c41d14e2c153aefd5d46f (diff)
downloadandroid_packages_apps_AudioFX-e7de651d5cf0c53340bd4502813ccfb3096dff9e.tar.gz
android_packages_apps_AudioFX-e7de651d5cf0c53340bd4502813ccfb3096dff9e.tar.bz2
android_packages_apps_AudioFX-e7de651d5cf0c53340bd4502813ccfb3096dff9e.zip
Replace custom Dialogs with Spinners.
Change-Id: Idb55d2834b99fb23907a204200d71d25a194df2f
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/music_main.xml98
1 files changed, 10 insertions, 88 deletions
diff --git a/res/layout/music_main.xml b/res/layout/music_main.xml
index 8993309..90c23ff 100644
--- a/res/layout/music_main.xml
+++ b/res/layout/music_main.xml
@@ -47,7 +47,7 @@
android:layout_marginLeft="15dip"
android:layout_alignParentLeft="true"
android:textAppearance="?android:attr/textAppearanceLarge"
- android:text="@string/main_toggle_effects_title" />
+ android:text="@string/eq_dialog_title" />
<Switch
android:id="@+id/mainToggleEffectsCheckBox"
android:layout_width="wrap_content"
@@ -64,55 +64,15 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:orientation="vertical">
- <LinearLayout
- android:id="@+id/eqLayout"
- android:layout_width="match_parent"
+ <Spinner android:id="@+id/eqSpinner"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal">
android:minHeight="?android:attr/listPreferredItemHeight"
- android:gravity="center_vertical"
- android:paddingRight="?android:attr/scrollbarSize"
- android:focusable="true"
- android:background="@android:drawable/list_selector_background">
-
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="15dip"
- android:layout_marginRight="6dip"
- android:layout_marginTop="6dip"
- android:layout_marginBottom="6dip"
- android:layout_weight="1">
- <TextView
- android:id="@+id/eqPresetsTitleTextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:ellipsize="marquee"
- android:fadingEdge="horizontal"
- android:text="@string/eq_title" />
- <TextView
- android:id="@+id/eqPresetsSummaryTextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/eqPresetsTitleTextView"
- android:layout_alignLeft="@+id/eqPresetsTitleTextView"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:maxLines="4" />
- </RelativeLayout>
- <ImageView
- android:id="@+id/eqPresetsImageView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="4dip"
- android:layout_gravity="center_vertical"
- android:background="@drawable/btn_circle"
- android:src="@drawable/ic_btn_round_more" />
- </LinearLayout>
+ android:drawSelectorOnTop="true"
+ />
<include layout="@layout/music_eq" />
@@ -178,51 +138,13 @@
android:paddingRight="20dip" />
</LinearLayout>
- <LinearLayout
- android:id="@+id/eRLayout"
- android:layout_width="match_parent"
+ <Spinner android:id="@+id/prSpinner"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
- android:gravity="center_vertical"
- android:paddingRight="?android:attr/scrollbarSize"
- android:focusable="true"
- android:background="@android:drawable/list_selector_background"
- android:visibility="gone">
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="15dip"
- android:layout_marginRight="6dip"
- android:layout_marginTop="6dip"
- android:layout_marginBottom="6dip"
- android:layout_weight="1">
- <TextView
- android:id="@+id/eRPresetsTitleTextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:ellipsize="marquee"
- android:fadingEdge="horizontal"
- android:text="@string/pr_title" />
- <TextView
- android:id="@+id/eRPresetsSummaryTextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/eRPresetsTitleTextView"
- android:layout_alignLeft="@+id/eRPresetsTitleTextView"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:maxLines="4"
- android:text="@string/pr_summary" />
- </RelativeLayout>
- <ImageView
- android:id="@+id/eRPresetsImageView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="4dip"
- android:layout_gravity="center_vertical"
- android:background="@drawable/btn_circle"
- android:src="@drawable/ic_btn_round_more" />
- </LinearLayout>
+ android:drawSelectorOnTop="true"
+ android:visibility="gone"
+ />
</LinearLayout>
</ScrollView>