hello, I dont know what your canvas. you want to add a image(png) for button ? if yes, I think you can use class imagebutton, than you can changed main.xml.to add "layout:src="drawtable/iconname""
Regards. On 3月9日, 下午12时04分, xspotlivin <[email protected]> wrote: > I'd like to know how to make a button out of a PNG and display it on > my canvas (using drawBitmap?). When I click on this button, it will > take me to a new activity. All this will be in the onClickListener. > > So, how do I take a PNG, make a button with it, and draw it on my > canvas? I looked at ImageButton, but I'm unsure how it works or how to > draw it on the canvas. > > Thanks for your help. A code sample would also be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

