I am new to Android.How to use ViewPager.scrollBy(int x,int y)
? ViewPager.scrollBy(int x,int y)
is not updating View
new Handler().post(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
mainPager.scrollBy(10,0);
}
});
even this is not updating View. please tell me what is the difference between scrollTo(int x,int y) and scrollBy(int x,int y);