diff options
author | Clark Scheff <clark@cyngn.com> | 2014-07-09 15:49:03 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2014-07-10 08:35:10 -0700 |
commit | e7a0b1076f5e2ccf4c2a84dc58e97a296e83b4d0 (patch) | |
tree | a3c8f89aa60fc77dd90694c69dbb56070b99c116 /res | |
parent | 95daf276638aae28ab567fce1bfb0088818e2d85 (diff) | |
download | packages_apps_ThemeChooser-e7a0b1076f5e2ccf4c2a84dc58e97a296e83b4d0.zip packages_apps_ThemeChooser-e7a0b1076f5e2ccf4c2a84dc58e97a296e83b4d0.tar.gz packages_apps_ThemeChooser-e7a0b1076f5e2ccf4c2a84dc58e97a296e83b4d0.tar.bz2 |
Add component selection for sounds.
Change-Id: Ib72c4c3a97bde11a6a5547c1c8f15b3e5059bb1a
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xxhdpi/media_sound__selector_preview.png | bin | 0 -> 3300 bytes | |||
-rw-r--r-- | res/layout/component_selection_sounds_pager_item.xml | 8 | ||||
-rw-r--r-- | res/layout/sound_component_selection_item.xml | 26 | ||||
-rw-r--r-- | res/values/colors.xml | 2 | ||||
-rw-r--r-- | res/values/dimens.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 8 |
6 files changed, 44 insertions, 1 deletions
diff --git a/res/drawable-xxhdpi/media_sound__selector_preview.png b/res/drawable-xxhdpi/media_sound__selector_preview.png Binary files differnew file mode 100644 index 0000000..bcac6c2 --- /dev/null +++ b/res/drawable-xxhdpi/media_sound__selector_preview.png diff --git a/res/layout/component_selection_sounds_pager_item.xml b/res/layout/component_selection_sounds_pager_item.xml new file mode 100644 index 0000000..08d0c56 --- /dev/null +++ b/res/layout/component_selection_sounds_pager_item.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/sound_component_selection_item.xml b/res/layout/sound_component_selection_item.xml new file mode 100644 index 0000000..693840e --- /dev/null +++ b/res/layout/sound_component_selection_item.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginStart="24dp" + android:layout_marginTop="@dimen/component_margin_top" + android:gravity="center_vertical" + style="@style/component_sound_title"/> + + <ImageView + android:id="@+id/play_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="24dp" + android:layout_marginTop="@dimen/component_margin_top" + android:src="@drawable/media_sound__selector_preview"/> + +</LinearLayout>
\ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index 0b3eda6..6cf5ff8 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -33,6 +33,6 @@ <color name="component_selection_background">#e6212121</color> <color name="component_divider_color">#80cccccc</color> <drawable name="component_selection_pressed">#40000000</drawable> - <color name="component_selection_current_text_color">#44a7ff</color> + <color name="component_selection_current_text_color">#50acff</color> <color name="background">#d6d6d8</color> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 8642e78..85b6d0f 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -26,6 +26,7 @@ <dimen name="component_selection_cell_width">80dp</dimen> <dimen name="component_selection_cell_height">112dp</dimen> <dimen name="component_selection_cell_height_boot_anim">203dp</dimen> + <dimen name="component_selection_cell_height_sounds">120dp</dimen> <dimen name="component_selection_content_width">48dp</dimen> <dimen name="component_selection_content_height">@dimen/component_selection_content_width</dimen> <dimen name="component_selection_bootani_content_width">80dp</dimen> diff --git a/res/values/styles.xml b/res/values/styles.xml index 285155d..dd2376b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -144,4 +144,12 @@ <item name="android:maxLines">2</item> </style> + <style name="component_sound_title"> + <item name="android:textColor">@android:color/white</item> + <item name="android:gravity">center_vertical</item> + <item name="android:textAllCaps">true</item> + <item name="android:textSize">18sp</item> + <item name="android:maxLines">1</item> + </style> + </resources> |