Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 243
Suzan Cioc Avatar asked May 17 '12 09:05

Suzan Cioc


People also ask

How do I change the button background to transparent?

The transparent button can be easily created by using HTML and CSS. In this article, we will use background-color: transparent; property to design the transparent background button. HTML Code: In this section, we will create a basic structure of button using the button Tag.

How do you make a white background on a button?

To change the background color of the button, use the CSS background-color property and give it a value of a color of your taste. In the . button selector, you use background-color:#0a0a23; to change the background color of the button.


1 Answers

Set the background to @android:drawable/btn_default to get rid of the transparency of holo theme

like image 155
tlrmcknz Avatar answered Oct 08 '22 23:10

tlrmcknz