diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-10-06 21:37:30 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2014-10-08 09:32:54 -0700 |
commit | 549f9b02a86c589f1acf0220006aaf7a8fe1d146 (patch) | |
tree | 76ec45f8429ada7ed04c297b1a95b2ea51e0af31 /WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml | |
parent | 33de945451e1380eff2f4c6cd3aa5bb32c0ad368 (diff) | |
download | android_packages_apps_Trebuchet-549f9b02a86c589f1acf0220006aaf7a8fe1d146.tar.gz android_packages_apps_Trebuchet-549f9b02a86c589f1acf0220006aaf7a8fe1d146.tar.bz2 android_packages_apps_Trebuchet-549f9b02a86c589f1acf0220006aaf7a8fe1d146.zip |
Updating the wallpaperpicker thumb selection feedback
> Using shape drawable instead of 9-patch image
> For L and above, using ripple click feedback with a tick
when selected. The vector path for tick is from go/icons ('Done')
Bug: 17897837
Change-Id: Ic9c9e455eb8bc39322b1474dd55432961b9a6498
Diffstat (limited to 'WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml')
-rw-r--r-- | WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml b/WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml new file mode 100644 index 000000000..97cdcd637 --- /dev/null +++ b/WallpaperPicker/res/drawable-v21/wallpaper_tile_fg.xml @@ -0,0 +1,39 @@ +<?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. +--> + +<ripple xmlns:android="http://schemas.android.com/apk/res/android" + android:color="#66FFFFFF" > + + <item + android:id="@android:id/mask" + android:drawable="@android:color/white"/> + <item + android:bottom="23.25dp" + android:left="29.25dp" + android:right="29.25dp" + android:top="23.25dp"> + <selector> + <item + android:drawable="@drawable/ic_tick" + android:state_selected="true"/> + <item + android:drawable="@drawable/ic_tick" + android:state_checked="true"/> + </selector> + </item> + +</ripple>
\ No newline at end of file |