On Fri, Feb 19, 2010 at 4:15 PM, schwiz <[email protected]> wrote:

> you have the right idea,  first make you activity implement
> onClickListener, then pass onClickListener this instead.  Then you
> need to either be extending from TextView instead of view, or be
> calling canvas.drawText()
>

This is really overkill. Your click listener is fine and you don't need a
custom view nor do you need to be doing any custom drawing.

Add a textview to your layout and get a handled to like you do for your
button. In you're click listener, instead of calling dodraw(), just
increment your count and set the text on the textview. Done.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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