Added view pager support

Added attribute isInViewPager, which allows both swipe to work and view pager to work. 
Trick is that if user swipes on the edges, view pager handles the event.