summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2010-11-18 17:59:58 +0800
committerHung-ying Tyan <tyanh@google.com>2010-11-24 17:37:14 +0800
commiteb1f0c8299d96bad9bb449ff9e13eff4b43272cc (patch)
treea8f78fb4623b5c89eb3af56fb2b695e2f574f6cf /res/drawable
parent677c81c916b4105131b395399b0a91d5eeb82935 (diff)
downloadpackages_apps_LegacyCamera-eb1f0c8299d96bad9bb449ff9e13eff4b43272cc.zip
packages_apps_LegacyCamera-eb1f0c8299d96bad9bb449ff9e13eff4b43272cc.tar.gz
packages_apps_LegacyCamera-eb1f0c8299d96bad9bb449ff9e13eff4b43272cc.tar.bz2
Highlight camera/video icon when mode is changed.
+ Make camera/video icons on switcher radio buttons instead of RotateImageView for x-large devices. + Add icons for camera and video on different states (normal and checked) for x-large devices. + Add SwitcherSet.java that consists of the radio buttons and the Switcher and replace the camera_switch_set linear layout with it. + Replace Switcher with SwitcherSet in Camera and VideoCamera. Bug: 3156677 Change-Id: I1ea7b4d4149d0a8dc548086150a9ae1a616cd8de
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/btn_ic_mode_switch_camera.xml20
-rw-r--r--res/drawable/btn_ic_mode_switch_video.xml20
2 files changed, 40 insertions, 0 deletions
diff --git a/res/drawable/btn_ic_mode_switch_camera.xml b/res/drawable/btn_ic_mode_switch_camera.xml
new file mode 100644
index 0000000..adbd879
--- /dev/null
+++ b/res/drawable/btn_ic_mode_switch_camera.xml
@@ -0,0 +1,20 @@
+<?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_checked="true" android:drawable="@drawable/btn_ic_mode_switch_camera_checked" />
+ <item android:drawable="@drawable/btn_ic_mode_switch_camera_normal" />
+</selector>
diff --git a/res/drawable/btn_ic_mode_switch_video.xml b/res/drawable/btn_ic_mode_switch_video.xml
new file mode 100644
index 0000000..00f989d
--- /dev/null
+++ b/res/drawable/btn_ic_mode_switch_video.xml
@@ -0,0 +1,20 @@
+<?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_checked="true" android:drawable="@drawable/btn_ic_mode_switch_video_checked" />
+ <item android:drawable="@drawable/btn_ic_mode_switch_video_normal" />
+</selector>