[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-13 Thread Zsolt Vasvari
My guess is that you would have to handle your own touch events and only pass it down to the subclass if your hit region was touched. On Oct 13, 12:28 pm, Kumar Bibek coomar@gmail.com wrote: You can have that, but again, the the effective view area is still a rectangle, isn't it? On

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-13 Thread DanH
The effective view area can be the whole screen with an alpha channel. I've had components layered 10 deep on other platforms. On Oct 12, 11:28 pm, Kumar Bibek coomar@gmail.com wrote: You can have that, but again, the the effective view area is still a rectangle, isn't it? On Wed, Oct

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Zsolt Vasvari
The only difference between a button and a text label is that its default style properties enables it to be clicked on, get focused and (as Mark said it) change its appearence based on the click. Otherwise Button==Label On Oct 12, 7:01 am, Dancing Fingers batym...@gmail.com wrote: Hi guys, I'm

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
That is an interesting question: I haven't run across any way in Android to control the shape of the sensitive area of a button. Is it always a rectangle, or can it be made circular, triangular, etc, by making it conform to the shape of an image? On Oct 11, 6:03 pm, Mark Murphy

Re: [android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
By default it is a rectangle. All the views are rectangles as well. As Mark said, they look different because of the backgrounds. On Wed, Oct 13, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote: That is an interesting question: I haven't run across any way in Android to control the shape of the

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
I know that's the default. But other platforms have a way to modify that default. On Oct 12, 10:41 pm, Kumar Bibek coomar@gmail.com wrote: By default it is a rectangle. All the views are rectangles as well. As Mark said, they look different because of the backgrounds. On Wed, Oct 13,

Re: [android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
Ummm, What do you mean by modify that default? All the views take of a rectangular estate area. This is generally the way how widgets are laid out virtually everywhere. Even while you are designing HTML pages, everything is a rectangle. The boundaries of a view is always a rectangle. On Wed, Oct

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
I mean, eg, provide an image of a circle, and have only the area inside the circle (where alpha is non-zero) be sensitive. On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote: Ummm, What do you mean by modify that default? All the views take of a rectangular estate area. This is

Re: [android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
You can have that, but again, the the effective view area is still a rectangle, isn't it? On Wed, Oct 13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote: I mean, eg, provide an image of a circle, and have only the area inside the circle (where alpha is non-zero) be sensitive. On Oct 12, 10:58