views:

406

answers:

2

How to create a transparent textview on click at the bottom of the running screen. Thanks in advance....

+1  A: 

If you mean make the textview invisible and being able to turn it visible, you can use this attribute in your xml textview :

android:visibility="invisible"

and then you can turn it visible with setvisibility().

now if you just want the background of your textview to be transparent, you have to define it's background color has #ffffffff

Sephy
Defining #00000000 the background becames black. I would like to see the Android's desktop on the background of the text, is there a way?
Tom Brito
My mistake, I think it must be better with F's instead of 0's. I'm not sure you can see the actual desktop with the apps and everything. Or I don't know how
Sephy
A: 

Defining #00000000 the background, whereas the first 2 are it's alpha state (Transparency), and then the other 6 are RGB. Alpha is 00-FF.

Hope this helps!

Don