None of the SDK versions will automatically check what areas in the button should be a hit area... it's just a plane W x H area
You will need to create a custom image button class and catch the touch events and decide if it's a hit or not... :) -Moto On Jan 15, 4:14 pm, clark <[email protected]> wrote: > I had added a D-Pad image button to a game, and the transparent areas > still registered hits. This was using the 1.5 SDK so I am not sure if > any of the newer SDKs have changed this. > > On Jan 15, 12:30 pm, Kevin Duffey <[email protected]> wrote: > > > You can use a png I believe with transparency to produce any style button > > you want. I don't know if the hit-test for clicking on it will work only on > > the image part or the whole square width/height size of the button itself > > tho. > > > On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz <[email protected]> wrote: > > > Ok so its shape will changed based on the image I assign to it? > > > > On Fri, Jan 15, 2010 at 2:11 PM, theSmith <[email protected]>wrote: > > > >> use an imagebutton > > > >> On Jan 15, 1:35 pm, Tommy <[email protected]> wrote: > > >> > Hey, > > > >> > Is there a way to create a custom button style? Say I want a round > > >> > button do I simply take the pre-made round graphic and make it the > > >> > background of the button or will the button still be a rectangle? > > > >> -- > > >> 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]<android-developers%2bunsubs[email protected]> > > > >> For more options, visit this group at > > >>http://groups.google.com/group/android-developers?hl=en > > > > -- > > > 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]<android-developers%2bunsubs[email protected]> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en-Hide quoted text - > > > - Show quoted text -
-- 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

