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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -