How can I merge two Drawables in Android?

How can I merge two Drawables in Android?
Answer
The first Drawable is a plus button (20×20 dp ) and the second one is a small dot (4×4 dp ) below the plus button. My first approach was to just add both Drawables to the LayerDrawable , but when I do that, the width/height attributes of the dot specified in the xml are ignored, and it stretches to cover the plus icon.
 

Tìm kiếm

Back
Top