pictures and buttons

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

pictures and buttons

Postby JJ » Tue Apr 21, 2009 8:57 pm

Hi

Does anybody knows how can I put a Bitmap on top of a button, but without taking the whole surface?

at the moment, what I am doing is:


BitmapDrawable bd=new BitmapDrawable(myBitmap);
Button myButton.setBackgroundDrawable(bd);

and the picture occupies the whole button... is there any way to set up some margins?

Thanks a lot
JJ
Developer
Developer
 
Posts: 35
Joined: Tue May 13, 2008 1:18 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests