summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJames Kung <kingkung@google.com>2013-02-25 12:05:22 -0800
committerJames Kung <kingkung@google.com>2013-02-25 15:01:10 -0800
commit7f1c44e9cb4f5503fae17d35d39370f9ef8395a3 (patch)
tree1a273625cb46d82d613d1a4bde4c887c9033344b /res
parent7f30f4734a9eff94de8d2f79add52c2919002e54 (diff)
downloadandroid_frameworks_opt_colorpicker-7f1c44e9cb4f5503fae17d35d39370f9ef8395a3.tar.gz
android_frameworks_opt_colorpicker-7f1c44e9cb4f5503fae17d35d39370f9ef8395a3.tar.bz2
android_frameworks_opt_colorpicker-7f1c44e9cb4f5503fae17d35d39370f9ef8395a3.zip
Adding visible pressed states to color swatches.
Bug: 8254226 Change-Id: I657996e99c1b550011c26498348113a35897727a
Diffstat (limited to 'res')
-rw-r--r--res/layout/color_picker_swatch.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/res/layout/color_picker_swatch.xml b/res/layout/color_picker_swatch.xml
new file mode 100644
index 0000000..1495820
--- /dev/null
+++ b/res/layout/color_picker_swatch.xml
@@ -0,0 +1,28 @@
+<?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.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
+ <ImageView
+ android:id="@+id/color_picker_swatch"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+ <ImageView
+ android:id="@+id/color_picker_checkmark"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_colorpicker_swatch_selected"
+ android:scaleType="fitXY"
+ android:visibility="gone" />
+</merge> \ No newline at end of file