It's been a long while when I saw custom controls, so I don't remember this. But you could be write. What I am looking for is as I mentioned irregularly shaped controls, so that the handler to the control will be invoked when the user action is on the irregularly shaped part of the control. For example, I will have a bucket full of fruits, staying next to each other, and clicking on anyone should tell me that you selected banna. Not apple, not orange ...
Not sure if this is doable or not !! -pro On Sep 11, 2:14 pm, "nEx.Software" <[email protected]> wrote: > All controls in any development platform I have ever worked with have > been based on rectangular bounds. Whether you use all of the available > space within those bounds is, of course, up to you... but the fact > remains that there is a rectangular bound. Am I misunderstanding? > > On Sep 11, 8:49 am, pro <[email protected]> wrote: > > > I know this question has been brought up before. After looking at the > > android api example, playing with it in the emulator ( run and debug), > > I could not find a way to create *irregular shaped buttons*. > > > The requirements are - > > > 1) Button ( or the control ) can't have rectangular area ( visible or > > transperant). For example a banana control, an apple control etc. And > > it would respond to click or any form of HID interface. > > > 2) The button can change positions ( program will control this), > > including disappear and resurface. > > > 3) A tad bit of 3d effect would be nicee, but not essential for the > > first version > > > 4) Also (alternative), once a background canvas is drawn, and I point > > and click on different area of the background. How do I get the > > cooridinate ( x, y) in pixel metric or any other metric. > > > Could not find any example on this... > > > A minimal amount ( like res. etc. could go to xml files), but the > > dynamics would be program control. > > > thanks > > -pro --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

