I'm not sure if this is the right group for the questions I did put here!
Also I'm looking for a ways to have a button ( using drawable ) displayed
with a text on it.

I see examples from APIDemos that is XML based layout.  But I want a
drawable button with text.

Any pointers?

-pro

On Mon, Oct 5, 2009 at 5:01 PM, pro <[email protected]> wrote:

> Hi All,
>
> I'm trying to figure out few, perhaps easy!, things -
>
> 1) How do I figure out what event(s) triggered invocation of onDraw()
> method of a view?. I've a canvas with a button, std. app menu, and I
> seem to get 3 calls to onDraw() without even touching ( meaning
> clicking the mouse) on emulator's screen. My guess is that it is
> dependent on the number of elements ( like control, txt etc. i.e
> probably the number of child widgets) on the view !!
>
> 2) If I touch the screen with my fat finger, what x,y coordinate I
> will get in touch event?. It seems like that it is no longer a point
> event, but a whole bunch of pixel points?
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to