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
@Override
    public boolean onTouchEvent(MotionEvent event) {

         if(event.getAction()==1)
        {   done=true;

            return(super.onTouchEvent(event));
        }

        return super.onTouchEvent(event);
    };

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

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: Google Feedfetcher, Majestic-12 [Bot] and 6 guests