I can make an image button like "1" with android xml and bitmap repeat.
But I want to make it like "2" (half transparent) with android xml. How can I make it?
I can make an image button like "1" with android xml and bitmap repeat.
But I want to make it like "2" (half transparent) with android xml. How can I make it?
Create half_transparent_bg.xml as follows:
You can change the background of the image button to this drawable
or if you want to stack it to the bitmap repeat put the bitmap with the shape drawable above in layer-list
EDIT:
Where you can put your red stripe instead of close
This is my project view. I want remove solid white color and keep white strips. transparent half of strips.
http://i.stack.imgur.com/H5vJi.png
and i is my xml: