Something like this?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Hello"
android:background="@drawable/u_r_png" />
</LinearLayout>
On Mon, Mar 9, 2009 at 9:33 AM, 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 Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---