From d6570d11e4d1e43c2cfe1d10e27a7786c4283169 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Thu, 6 Nov 2014 13:50:22 -0800 Subject: Support theme attributes in StateListDrawable element Also adds support for specifying drawable as a color since getDrawable() automatically wraps colors to ColorDrawable. Does not currently allow themed item elements to be used in Zygote preload, but we can add that at some point in the future. BUG: 18208662 Change-Id: I4c9721ffd100da4b9db7743a46c914828b943dae --- core/res/res/values/attrs.xml | 7 ++ .../drawable/AnimatedStateListDrawable.java | 88 ++++++++-------------- .../graphics/drawable/StateListDrawable.java | 65 ++++++++++------ 3 files changed, 80 insertions(+), 80 deletions(-) diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 67ba27da3120..e63fc55e01d8 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -4804,6 +4804,13 @@ + + + + + +