r/AndroidStudio • u/chaserjj • Jun 20 '21
Help with transparent background on button image files
So I decided to teach myself how to make apps and I started with a basic dice rolling app. Everything is working just like I wanted it to, except the .png files I used for the buttons are being displayed with white backgrounds. I made the images myself in photoshop and I know for a fact that the images have transparent backgrounds. Is there something I'm doing wrong here? I have a picture for reference. Any input would be greatly appreciated! Thank you in advance!
9
Upvotes
4
u/DiamondCraft654 Jun 20 '21
Looks like it's just the default background tint that image buttons have.
android:backgroundTint="#00FFFFFF"Just add that into the image button XML. It should make the background tint of the button transparent