diff options
author | Chung-yih Wang <cywang@google.com> | 2010-12-01 12:02:09 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2010-12-03 16:08:23 +0800 |
commit | 1d12db9c16f57894aee41d004b4e21d684cc269d (patch) | |
tree | 438d2c5ce82465c2772033df95397f718b53de27 /res | |
parent | 742593ed71ebff889a0a23eeba6d7309def6c4fb (diff) | |
download | packages_apps_LegacyCamera-1d12db9c16f57894aee41d004b4e21d684cc269d.zip packages_apps_LegacyCamera-1d12db9c16f57894aee41d004b4e21d684cc269d.tar.gz packages_apps_LegacyCamera-1d12db9c16f57894aee41d004b4e21d684cc269d.tar.bz2 |
Highlight the selected setting in popup windows.
bug:3242797
Change-Id: Iba2c93a2213723a16137a2083de10f3300feee2f
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/dialog_bottom_holo_dark.9.png | bin | 0 -> 5037 bytes | |||
-rw-r--r-- | res/drawable-hdpi/dialog_top_holo_dark.9.png | bin | 0 -> 7211 bytes | |||
-rw-r--r-- | res/drawable-hdpi/setting_picker_pressed.9.png | bin | 0 -> 152 bytes | |||
-rw-r--r-- | res/drawable-mdpi/dialog_bottom_holo_dark.9.png | bin | 0 -> 3303 bytes | |||
-rw-r--r-- | res/drawable-mdpi/dialog_top_holo_dark.9.png | bin | 0 -> 4633 bytes | |||
-rw-r--r-- | res/drawable-mdpi/setting_picker_pressed.9.png | bin | 0 -> 152 bytes | |||
-rw-r--r-- | res/drawable/setting_picker.xml | 21 | ||||
-rw-r--r-- | res/layout-xlarge/basic_setting_popup.xml | 2 | ||||
-rw-r--r-- | res/layout-xlarge/other_setting_popup.xml | 2 | ||||
-rw-r--r-- | res/values/styles.xml | 2 |
10 files changed, 27 insertions, 0 deletions
diff --git a/res/drawable-hdpi/dialog_bottom_holo_dark.9.png b/res/drawable-hdpi/dialog_bottom_holo_dark.9.png Binary files differnew file mode 100644 index 0000000..7e0e30c --- /dev/null +++ b/res/drawable-hdpi/dialog_bottom_holo_dark.9.png diff --git a/res/drawable-hdpi/dialog_top_holo_dark.9.png b/res/drawable-hdpi/dialog_top_holo_dark.9.png Binary files differnew file mode 100644 index 0000000..644a3d1 --- /dev/null +++ b/res/drawable-hdpi/dialog_top_holo_dark.9.png diff --git a/res/drawable-hdpi/setting_picker_pressed.9.png b/res/drawable-hdpi/setting_picker_pressed.9.png Binary files differnew file mode 100644 index 0000000..806fe28 --- /dev/null +++ b/res/drawable-hdpi/setting_picker_pressed.9.png diff --git a/res/drawable-mdpi/dialog_bottom_holo_dark.9.png b/res/drawable-mdpi/dialog_bottom_holo_dark.9.png Binary files differnew file mode 100644 index 0000000..1ada4d3 --- /dev/null +++ b/res/drawable-mdpi/dialog_bottom_holo_dark.9.png diff --git a/res/drawable-mdpi/dialog_top_holo_dark.9.png b/res/drawable-mdpi/dialog_top_holo_dark.9.png Binary files differnew file mode 100644 index 0000000..3cd7eb8 --- /dev/null +++ b/res/drawable-mdpi/dialog_top_holo_dark.9.png diff --git a/res/drawable-mdpi/setting_picker_pressed.9.png b/res/drawable-mdpi/setting_picker_pressed.9.png Binary files differnew file mode 100644 index 0000000..806fe28 --- /dev/null +++ b/res/drawable-mdpi/setting_picker_pressed.9.png diff --git a/res/drawable/setting_picker.xml b/res/drawable/setting_picker.xml new file mode 100644 index 0000000..60ece1d --- /dev/null +++ b/res/drawable/setting_picker.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/setting_picker_pressed" /> + <item android:drawable="@android:color/transparent" /> +</selector> diff --git a/res/layout-xlarge/basic_setting_popup.xml b/res/layout-xlarge/basic_setting_popup.xml index 6c3c1d7..c1708b9 100644 --- a/res/layout-xlarge/basic_setting_popup.xml +++ b/res/layout-xlarge/basic_setting_popup.xml @@ -28,6 +28,7 @@ <FrameLayout android:id="@+id/topPanel" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="@drawable/dialog_top_holo_dark" android:minHeight="48dip"> <TextView android:id="@+id/title" android:layout_width="wrap_content" @@ -41,5 +42,6 @@ <LinearLayout android:id="@+id/contentPanel" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:background="@drawable/dialog_bottom_holo_dark" android:orientation="vertical" /> </com.android.camera.ui.BasicSettingPopup> diff --git a/res/layout-xlarge/other_setting_popup.xml b/res/layout-xlarge/other_setting_popup.xml index ad55344..3927e3d 100644 --- a/res/layout-xlarge/other_setting_popup.xml +++ b/res/layout-xlarge/other_setting_popup.xml @@ -30,6 +30,7 @@ <FrameLayout android:id="@+id/topPanel" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="@drawable/dialog_top_holo_dark" android:minHeight="48dip"> <TextView android:id="@+id/title" android:text="@string/pref_camera_settings_category" @@ -45,6 +46,7 @@ <LinearLayout android:id="@+id/contentPanel" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:background="@drawable/dialog_bottom_holo_dark" android:orientation="vertical"> <com.android.camera.ui.InLineSettingPicker camera:prefKey="pref_camera_recordlocation_key" style="@style/SettingRow" /> diff --git a/res/values/styles.xml b/res/values/styles.xml index 0fa707b..0d0634f 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -80,10 +80,12 @@ </style> <style name="SettingRow"> <item name="android:layout_marginLeft">16dp</item> + <item name="android:layout_marginRight">16dp</item> <item name="android:gravity">center_vertical</item> <item name="android:orientation">horizontal</item> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">55dp</item> + <item name="android:background">@drawable/setting_picker</item> </style> <style name="OnScreenGpsIndicator"> <item name="android:layout_height">wrap_content</item> |