ScottyB
ScottyB

Reputation: 45

Android Transparent png doesn't show as transparent

I'm using an image with transparency as a ImageButton in my Android app - but when it appears on the android screen - it still has a whitish surrounding border.

I even changed the image to one of the template ones supplied and that still is not transparent (although it is in photoshop). Am a missing some declaration or something ?

I tried in both the emulator and also running on my phone and its still shows as white on the black background.

Cheers

ScottyB

Upvotes: 3

Views: 2816

Answers (1)

Dan Erez
Dan Erez

Reputation: 128

The whitish color IS the button part of the image button :)

Use regular Button and set your image as the android:background of it. Don't set any text.

Upvotes: 2

Related Questions