diff options
| author | Joe Onorato <joeo@google.com> | 2010-11-17 20:42:00 -0800 |
|---|---|---|
| committer | Joe Onorato <joeo@google.com> | 2010-11-17 21:20:08 -0800 |
| commit | e70b375c4b9d73d1165a21a421cfd73170cd06cc (patch) | |
| tree | f4b2dd62b9bc712d1c3fd72c26148acf5459863d /core | |
| parent | 3f1845ffec469cac9d897b504fee29c173890024 (diff) | |
| download | frameworks_base-e70b375c4b9d73d1165a21a421cfd73170cd06cc.zip frameworks_base-e70b375c4b9d73d1165a21a421cfd73170cd06cc.tar.gz frameworks_base-e70b375c4b9d73d1165a21a421cfd73170cd06cc.tar.bz2 | |
Add an opacity attribute to LayerDrawable that lets you control the opacity directly instead of
collecting the values from the children-- a task that is much harder to get right than we want to
spend startup time on.
Change-Id: Idf5b1d612472c6accfdc935c6a6fadb1eb239a73
Diffstat (limited to 'core')
| -rwxr-xr-x | core/res/res/values/attrs.xml | 9 | ||||
| -rw-r--r-- | core/res/res/values/public.xml | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index af1cab9..651bfea 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -49,7 +49,6 @@ window is floating. --> <attr name="backgroundDimEnabled" format="boolean" /> - <!-- =========== --> <!-- Text styles --> <!-- =========== --> @@ -2943,6 +2942,14 @@ <attr name="bottom" format="dimension" /> </declare-styleable> + <declare-styleable name="LayerDrawable"> + <attr name="opacity"> + <enum name="opaque" value="-1" /> + <enum name="transparent" value="-2" /> + <enum name="translucent" value="-3" /> + </attr> + </declare-styleable> + <declare-styleable name="LayerDrawableItem"> <attr name="left" /> <attr name="top" /> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index b0be7e1..e319fa0 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1378,6 +1378,7 @@ <public type="attr" name="state_accelerated" /> <public type="attr" name="baseline" /> <public type="attr" name="homeLayout" /> + <public type="attr" name="opacity" /> <public type="anim" name="animator_fade_in" /> <public type="anim" name="animator_fade_out" /> |
