android - Background of my custom button isn't transparent -


i created custom button , saved .png transparant background. code in xml

<button        android:id="@+id/btnreport"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_alignparentbottom="true"        android:layout_centerhorizontal="true"        android:drawabletop="@drawable/report" /> 

and when run in emulator button grey background (i cannot post images yet, because reputation low. apologies this) how make background transparant?

thanks.

vincent

you should doing

android:background="@drawable/report"  

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -