diff options
author | Amith Yamasani <yamasani@google.com> | 2011-08-01 15:55:06 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2011-08-02 18:59:43 -0700 |
commit | 823bf0c155fb481476cc3f755bdc12943ed5d4b8 (patch) | |
tree | 5b08b17015d71f94c2ee785b696327584f4c0d68 /res/layout/preference_dialog_ringervolume.xml | |
parent | 8d7f9594cdcfd3e88c67db195aca6accc3c10274 (diff) | |
download | packages_apps_Settings-823bf0c155fb481476cc3f755bdc12943ed5d4b8.zip packages_apps_Settings-823bf0c155fb481476cc3f755bdc12943ed5d4b8.tar.gz packages_apps_Settings-823bf0c155fb481476cc3f755bdc12943ed5d4b8.tar.bz2 |
Sound settings screen and volumes dialog reconfiguration.
Removed the "Notifications use ring volume" checkbox.
Show the current ringtones in the summary area.
Bug: 5032308
Change-Id: I17e63f32c1775dd2097904df1aa6aaf699bd8ae2
Diffstat (limited to 'res/layout/preference_dialog_ringervolume.xml')
-rw-r--r-- | res/layout/preference_dialog_ringervolume.xml | 160 |
1 files changed, 110 insertions, 50 deletions
diff --git a/res/layout/preference_dialog_ringervolume.xml b/res/layout/preference_dialog_ringervolume.xml index 5aebedc..4944f91 100644 --- a/res/layout/preference_dialog_ringervolume.xml +++ b/res/layout/preference_dialog_ringervolume.xml @@ -32,34 +32,36 @@ android:paddingTop="20dip" android:visibility="gone"/> - <TextView - android:id="@+id/ringtone_label" - android:layout_width="match_parent" + <!-- Dummy --> + <SeekBar android:id="@*android:id/seekbar" + android:layout_width="0dip" android:layout_height="wrap_content" - android:text="@string/incoming_call_volume_title" - android:paddingTop="10dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> + android:layout_weight="1" + android:visibility="gone" /> - <!-- Used for the ring volume. This is what the superclass VolumePreference uses. --> - <!-- TODO - is this used? --> - <SeekBar android:id="@*android:id/seekbar" - android:layout_width="match_parent" + <TextView + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="2dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> + android:paddingLeft="16dip" + android:layout_gravity="left" + android:text="@string/volume_media_description" + /> <!-- Used for the media volume --> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingLeft="8dip" android:orientation="horizontal" android:gravity="center_vertical"> - <ImageView android:id="@+id/volume_mute_button" + <ImageView android:id="@+id/media_mute_button" android:layout_width="wrap_content" - android:layout_height="wrap_content"/> + android:layout_height="wrap_content" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + /> <SeekBar android:id="@+id/media_volume_seekbar" android:layout_width="0dip" @@ -70,61 +72,119 @@ android:paddingRight="20dip" /> </LinearLayout> - <!-- TODO - is this used? --> - <CheckBox android:id="@+id/same_notification_volume" + <!-- Used for the ringer/notification volume --> + <LinearLayout + android:id="@+id/ringer_section" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/checkbox_notification_same_as_incoming_call" - android:textAppearance="?android:attr/textAppearanceSmall" - android:layout_marginTop="6dip" - android:layout_marginLeft="20dip" - android:layout_marginRight="20dip" /> + android:orientation="vertical"> + + <TextView + android:id="@+id/ringer_description_text" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dip" + android:paddingLeft="16dip" + android:layout_gravity="left" + android:text="@string/volume_ring_description" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="8dip" + android:orientation="horizontal" + android:gravity="center_vertical"> + + <ImageView android:id="@+id/ringer_mute_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + /> + + <SeekBar android:id="@+id/ringer_volume_seekbar" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + </LinearLayout> - <View - android:layout_width="match_parent" - android:layout_height="1px" - android:background="#1bffffff" - android:layout_marginTop="16dip" - android:layout_marginBottom="16dip"/> + </LinearLayout> <!-- Used for the notification volume --> <LinearLayout + android:id="@+id/notification_section" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> + android:orientation="vertical"> + + <TextView + android:id="@+id/notification_description_text" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dip" + android:paddingLeft="16dip" + android:layout_gravity="left" + android:text="@string/volume_notification_description" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="8dip" + android:orientation="horizontal" + android:gravity="center_vertical"> + + <ImageView android:id="@+id/notification_mute_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + /> + + <SeekBar android:id="@+id/notification_volume_seekbar" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + </LinearLayout> - <ImageView android:id="@+id/notification_mute_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - <SeekBar android:id="@+id/notification_volume_seekbar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="2dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> </LinearLayout> - <View - android:layout_width="match_parent" - android:layout_height="1px" - android:background="#1bffffff" - android:layout_marginTop="16dip" - android:layout_marginBottom="16dip"/> + <TextView + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dip" + android:paddingLeft="16dip" + android:layout_gravity="left" + android:text="@string/volume_alarm_description" + /> <!-- Used for the alarm volume --> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingLeft="8dip" android:orientation="horizontal"> <ImageView android:id="@+id/alarm_mute_button" android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - + android:layout_height="wrap_content" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + /> <SeekBar android:id="@+id/alarm_volume_seekbar" - android:layout_width="match_parent" + android:layout_width="0dip" android:layout_height="wrap_content" + android:layout_weight="1" android:paddingTop="2dip" android:paddingLeft="20dip" android:paddingRight="20dip" /> @@ -132,4 +192,4 @@ </LinearLayout> -</ScrollView>
\ No newline at end of file +</ScrollView> |