Good day Everyone!
Faced with this task. To make a picture gallery with sliding.
I think so:
1. To make a screen mesh type ImageView in a RelativeLayout, for example.
2. Count the number of images divided by the number that fit on one screen. This will be the number of fragments that we will add in the ViewPager.
When you click on the picture you want to show photos in full screen. ie you need to refer to this photo
But in this scheme I don't know how to refer to a specific photo on a specific fragment.
Another option is to make horizontal RecycleView
mRecyclerView.setLayoutManager(new GridLayoutManager(mActivity, 3));
But how to make it swipesy as ViewPager. I understand I need to override the methods of scrolling, but I feel that objasnu.
Maybe there is a ready solution or someone tell me how to do it?