You can create a drawable using whatever image you want, for each of the states of the button. Try creating an xml file like so, and putting it in res/drawable:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/glassbutton_focusedblue_up" /> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/glassbutton_focusedblue_down" /> <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/glassbutton_defaultblue_down" /> <item android:drawable="@drawable/glassbutton_defaultblue_up" /> </selector> and then in your button set android:background="@drawable/mybutton_background" however I'm betting this still results in a square clickable area. I'm not sure if you can do a circular clickable area, but you're not likely to need one. On Nov 20, 6:52 am, Lewis <[EMAIL PROTECTED]> wrote: > I plan to create an imagebutton which I would like to make a > nonstandard shape (e.g. a circle). Any general ideas on how I would go > about this? > > Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---