开发者

How do I create a transparent textview on click at the bottom of the running screen?

开发者 https://www.devze.com 2022-12-24 11:21 出处:网络
How do I create开发者_如何学JAVA a transparent textview on click at the bottom of the running screen?Defining #00000000 the background, whereas the first 2 are it\'s alpha state (Transparency), and th

How do I create开发者_如何学JAVA a transparent textview on click at the bottom of the running screen?


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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消