scroll view is not working on fling

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

scroll view is not working on fling

Postby varun android » Thu Jan 12, 2012 2:44 pm

HI all

i have implemented fling(Swipe) on android i have four pages when i scroll first page to half position then i swipe then second page appears but not coming from top position i have tried
mSV.fullScroll(View.FOCUS_UP);
mSV.pageScroll(View.FOCUS_UP);
mSV.scrollTo(0, 0);

but no one work for me here mSV is my scrollview object
can anyone help me how to set position of scrollview in fling(Swipe).

Thanks in advance
varun android
Freshman
Freshman
 
Posts: 5
Joined: Wed Aug 17, 2011 9:05 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests