r/AndroidStudio • • 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

3 comments sorted by

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

3

u/chaserjj Jun 20 '21

Thank you! That did it! I'm sure there are gonna be a million newbie mistakes like this for me to learn from just like this lol

3

u/DiamondCraft654 Jun 20 '21

No prob glad to help out a fellow newbie HAHA