Skip to content

Commit

Permalink
Force view pagers to fling a little faster
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosley committed Sep 6, 2012
1 parent df6e001 commit db5d23e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public class ViewPager extends ViewGroup {
private static final boolean USE_CACHE = false;

private static final int DEFAULT_OFFSCREEN_PAGES = 1;
private static final int MAX_SETTLE_DURATION = 600; // ms
private static final int MIN_DISTANCE_FOR_FLING = 25; // dips
private static final int MAX_SETTLE_DURATION = 200; // ms
private static final int MIN_DISTANCE_FOR_FLING = 20; // dips

private static final int[] LAYOUT_ATTRS = new int[] {
android.R.attr.layout_gravity
Expand Down

0 comments on commit db5d23e

Please sign in to comment.