summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-10-13 13:29:46 -0700
committerSascha Haeberling <haeberling@google.com>2013-10-13 15:12:33 -0700
commit7f4dd18503452d02b207747aae4b3ff2bca21c1c (patch)
tree5541ac2a3cd0b32485ab305dbad9fd29eb02bf99 /res/drawable
parent2d5c74785d19f1944cab92948a6fa8233086ebc1 (diff)
downloadandroid_packages_apps_Snap-7f4dd18503452d02b207747aae4b3ff2bca21c1c.tar.gz
android_packages_apps_Snap-7f4dd18503452d02b207747aae4b3ff2bca21c1c.tar.bz2
android_packages_apps_Snap-7f4dd18503452d02b207747aae4b3ff2bca21c1c.zip
Add 'disabled' state for when Gcam is unable to take another shot.
Bug: 11113201 Change-Id: I887104dc79f4a7a83bb79b2d30c0289fc90c9022
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/btn_shutter_disabled.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/res/drawable/btn_shutter_disabled.xml b/res/drawable/btn_shutter_disabled.xml
new file mode 100644
index 000000000..865d83c38
--- /dev/null
+++ b/res/drawable/btn_shutter_disabled.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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/btn_shutter_pressed_disabled" />
+ <item android:drawable="@drawable/btn_shutter_default_disabled" />
+</selector>
+