Removing Background color in Android
I have set backgroundColor
in code like this,
View.setBackgroundColor(0xFFFF0000);
How to remove this background color on some event?
You should try setting the background color to transparent:
view.setBackgroundColor(0x00000000);
You can use
View.setBackgroundColor(Color.TRANSPARENT);
or
View.setBackgroundColor(0);
Please remember that almost everything visible on the screen extends View, like a Button, TextView, ImageView, any kind of Layout, etc...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With