title: How to know ViewPager has scrolled half the screen in android
body: <p>I want to know that the <code>ViewPager</code>s View has scrolled half the screen or not?</p>
  
  <p>While I am dragging it, if it has covered half the screen I want to change the page.</p>
  
  <p>For e.g. if I am testing on MDPI, i.e. of screen width 320px, and if I drag my page of ViewPager by 160px then I want to change the page.</p>
  
  <p>How to get this half distance covered by view from ViewPager?</p>