onItemSelected() form onTouchEvent()

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

onItemSelected() form onTouchEvent()

Postby Pravy » Mon Jul 04, 2011 7:12 am

I have developed customized gallerview, in which i have overriden onScroll() and onTouchEvent() methods. onItemSelected () callback method is getting invoked from the onScroll() but not from the onTouchEvent(). is it possible to invoke the onItemSelected () method for any particular action event from the onTouchEvent() ?

Code: Select all
    public boolean onTouchEvent(MotionEvent event) {

        {   done=true;


        return super.onTouchEvent(event);

this is my onTouchEvent() method.
Posts: 7
Joined: Mon May 23, 2011 1:24 pm


Return to Novice Tutorials

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest