Search code examples
androidstylestransparencyz-order

How to make button non transparent?


I wrote custom View which draws a circle. Then I put it on relative layout. Also I put standard button there, so that they overlap. And I see that button is transparent. How to make it non transparent?

enter image description here


Solution

  • The standard Holo themed button is partially transparent. You can either create a new button 9.png image to use in the button or create a new button by using drawable.

    Here's a link on how to do the latter:

    http://droidapp.co.uk/?p=309