this is what i did, and use MyViewPager in your xml ISO ViewPager
public class MyViewPager extends ViewPager {
    Method scroller; 
    public MyViewPager(Context context) {
        super(context);
        
    }
    public MyViewPager(Context context, AttributeSet attr) {
        super(context,attr);
        
    }
    
    void smoothScrollTo(int x, int y, int velocity) {
        super.smoothScrollTo(x, y, 1);
    }

}
It worked great, if you want you can calculate and provide actual velocity 
ISO of just 1.

On Thursday, February 16, 2012 2:09:03 AM UTC+1, Bruno Bruggemann wrote:
>
> Hi, I've a handler that before some seconds changes my views in the 
> ViewPager. It works perfectly, the only thing that I want to do is 
> change the speed of the slide animation when the setCurrentItem is 
> called with the parameter smoothScroll true. It's too fast and in some 
> devices it looks a little jerky. 
>
> Any suggestion? 
>
> Thanks!

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to