Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make any view background transparent?

Tags:

android

Attribute of RelativeLayout android:background="@android:color/transparent" is not working . I just want to make its background transparent?

like image 573
Vivek Coder Avatar asked Apr 02 '13 04:04

Vivek Coder


People also ask

How do you make a view transparent?

setAlpha(45); You may not be using this correctly. id="@+id/tileview" will be transparent and over id="@+id/backgroundview" .

How can I make the background of an image transparent for free?

Use Lunapic to make your image Transparent, or to remove background. Use form above to pick an image file or URL. Then, just click the color/background your want to remove.


Video Answer


1 Answers

Try this:

android:background="@null"

like image 195
Tyler MacDonell Avatar answered Oct 25 '22 11:10

Tyler MacDonell