Alex Rivera | Logout

ImageButton Border Transparency - How do I remove the square border around round image?

Asked 2011-03-21T05:14:09.163
41

I think my image is transparent, but I am seeing a grey background appearing around the edges of my image which is round. So instead of nice transparent round ImageButton I am seeing square edges. I need to provide height or it complains but now I have outline of grey/silver square instread of just round image.

Edit
Report

1 Answer

5

You could use ImageButton.setBackgroundResource(int) (android:background attribute) which will get rid of that border.

Costi

answered 2011-03-23T23:58:14.663

Your Answer