diff options
author | Justin Klaassen <justinklaassen@google.com> | 2015-06-08 16:53:06 -0700 |
---|---|---|
committer | Justin Klaassen <justinklaassen@google.com> | 2015-06-09 17:54:10 -0700 |
commit | ed2e687528641d2d2747c2b3672da48b75d4d12e (patch) | |
tree | b4fa49d3fae8963f2687700818c30d0cef31f79f /res/drawable | |
parent | e4a959ec862ff83a1ceb5904225fbe2d4248a9b8 (diff) | |
download | android_packages_apps_ExactCalculator-ed2e687528641d2d2747c2b3672da48b75d4d12e.tar.gz android_packages_apps_ExactCalculator-ed2e687528641d2d2747c2b3672da48b75d4d12e.tar.bz2 android_packages_apps_ExactCalculator-ed2e687528641d2d2747c2b3672da48b75d4d12e.zip |
Show "INV" button's selected state
Bug: 21708864
Change-Id: I837c7b768461ab065093c6ef6fbf0dec3acd1c2d
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/pad_button_inverse_background.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/res/drawable/pad_button_inverse_background.xml b/res/drawable/pad_button_inverse_background.xml new file mode 100644 index 0000000..ff0b2ae --- /dev/null +++ b/res/drawable/pad_button_inverse_background.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. + --> + +<ripple xmlns:android="http://schemas.android.com/apk/res/android" + android:color="@color/pad_button_advanced_ripple_color"> + <item android:id="@android:id/mask"> + <shape android:shape="rectangle"> + <corners android:radius="4dip" /> + <solid android:color="@android:color/white" /> + </shape> + </item> + <item> + <selector + android:enterFadeDuration="@android:integer/config_longAnimTime" + android:exitFadeDuration="@android:integer/config_longAnimTime"> + <item android:state_selected="true"> + <shape android:shape="rectangle"> + <corners android:radius="4dip" /> + <solid android:color="@color/pad_button_advanced_ripple_color" /> + </shape> + </item> + </selector> + </item> +</ripple> |