Hello,
I already posted today, as I need to improve something on a app.
What I have is a combination of different kinds of drawables, that are 
created programmatically. I have not tested with static xml-drawables.
The combination looks as the following below. The StateListDrawable should 
work for the background of a listview item.

StateListDrawable ---
                                 |--- LayerDrawable ---
                                 |                                 |----- 
GradientDrawable
                                 |                                 |
                                 |                                 |----- 
ShapeDrawable
                                 |
                                 |--- LayerDrawable --- ... (the same as 
above).

What I initially wanted to do was, to add the StateListDrawable (on top of 
the combination) to create a custom item hightlighting. Each of the 
Layer-Drawables works by themselves. But the whole above combination turns 
only black, if the StateListDrawable is added. If I remove the LayerDrawable 
and have only the GradientDrawable as next Drawable, the combination works 
again.

Well. Does someone know why this is the case and,
perhaps, knows a workaround for this?

R.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to