Search code examples
androidimageimageviewandroid-viewpagertouch

How can i achieve something like a vertical ViewPager in Android?


It may not be a great question but i am asking for some help. I am not a pro so please if anything is unclear post a comment and i will try to explain. I have an activity where i have a full screen ImageView where over it i have a couple of texts and an other overlayed imageview, i want when i swipe up to send the whole view upwards and to show from below a simillar view but with different image, i don't need to detect swipe gesture, i need the view to track my finger's Y (vertical value) , and as i have my images into an array , how can i create the same view for each image ? I am not using adapter and as i know adapters works only with gridview and listviews, please if someone knows help me !


Solution

  • Try to use RecyclerView I think it can do what you want