summaryrefslogtreecommitdiff
path: root/InCallUI/res/drawable/btn_swap.xml
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-01 16:52:01 -0700
committerAndrew Lee <anwlee@google.com>2014-05-01 17:06:57 -0700
commit9329f6b15b6692187ed69ed8f26d22724bf4ac2a (patch)
tree538fdaef72384efe43c6705e0cb955a2a8db6ef6 /InCallUI/res/drawable/btn_swap.xml
parentfed16a420cb5ca4b98e74a69a91776a99c22c395 (diff)
Add fancier press states for buttons.
- Add tint color, which applies 60% opacity in default state. - Apply tint to dialer call buttons. - Convert add, swap, and merge icons into drawables. Bug: 14108639 Change-Id: Id9c08ccb035958e51d28255b8c13644c6c5fca73
Diffstat (limited to 'InCallUI/res/drawable/btn_swap.xml')
-rw-r--r--InCallUI/res/drawable/btn_swap.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/InCallUI/res/drawable/btn_swap.xml b/InCallUI/res/drawable/btn_swap.xml
new file mode 100644
index 000000000..869b91786
--- /dev/null
+++ b/InCallUI/res/drawable/btn_swap.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ ~ Copyright (C) 2014 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
+ -->
+
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/btn_background" />
+
+ <item>
+ <bitmap android:src="@drawable/ic_incall_switch_holo_dark"
+ android:gravity="center"
+ android:tint="@color/selectable_icon_tint" />
+ </item>
+
+</layer-list> \ No newline at end of file