On Thu, Apr 21, 2011 at 8:47 PM, edprog <[email protected]> wrote: > Basically I would like to draw from myView class and not from the > main Activity, right now I have the OnTouch events in the main Activity > as you can see, I want to move all that code (The ontiuch) to myView class. >
You're missing the fact that you can create *ONE* touchlistener class that acts on an arbitrary view, then assign a new instance to each view that requires it. If this does not make sense, I think you need to spend some time brushing up on Java. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

