I'm working on a project for my thesis in which I'm using an app for analyzing swipe gestures. There are a lot of questions and informations around about the view pager in general and even how to manipulate its settings, but until now, I couldn't find the specific default value (distance between finger down and finger up) baked into the pager itself. This would be very useful for me in order to see what value google deems to be appropriate and to compare it to other values.
Help would be much appreciated! :)
edit:
OK, found some clues myself. This is the code for ViewPager: searchco.de/codesearch/view/10066260 and there is a static variable namend MIN_DISTANCE_FOR_FLING which has a value of 25 (dip). This value gets multiplied with the density of the current display, which is done in in initViewPager(). This value in turn is then used in determineTargetPage to check if the user has swiped a greater distance than the value. What I don't get: If I multiply 25 by e.g. 160 (as an exemplary density), the value gets way too big, so I'm obviously interpreting the code wrong in some way. I would really appreciate an explanation.