summaryrefslogtreecommitdiffstats
path: root/core/res/res/color
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-04-08 10:49:26 -0700
committerAlan Viverette <alanv@google.com>2015-04-08 10:49:26 -0700
commitff9f7b96468eceb39aa99bdaaa43391147f841ca (patch)
tree04accd5cd522eafe5bcd1eb7624071815ee659fe /core/res/res/color
parenta323e3f3366321ce63d1f465d7dfe8bdc0e95679 (diff)
downloadframeworks_base-ff9f7b96468eceb39aa99bdaaa43391147f841ca.zip
frameworks_base-ff9f7b96468eceb39aa99bdaaa43391147f841ca.tar.gz
frameworks_base-ff9f7b96468eceb39aa99bdaaa43391147f841ca.tar.bz2
Update rating bar assets for Material
Also ensures that ProgressBar doesn't create a tiled drawable when it doesn't actually need to. Bug: 19574820 Change-Id: Id3b9b00e05a56055ed4b19def7044a0bf38e8ec1
Diffstat (limited to 'core/res/res/color')
-rw-r--r--core/res/res/color/ratingbar_background_material.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/res/res/color/ratingbar_background_material.xml b/core/res/res/color/ratingbar_background_material.xml
new file mode 100644
index 0000000..e6f7488
--- /dev/null
+++ b/core/res/res/color/ratingbar_background_material.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_pressed="true"
+ android:color="?attr/colorControlActivated"
+ android:alpha="?attr/disabledAlpha" />
+ <item
+ android:color="?attr/colorControlNormal"
+ android:alpha="?attr/disabledAlpha" />
+</selector>