S
S
skaffman2019-02-01 00:21:53
Java
skaffman, 2019-02-01 00:21:53

How in Android to open an image in view mode like in the Gallery when clicking on a thumbnail?


I am completely new to programming and the question may be banal , but I searched for a long time and did not find an answer to it
( ImageView) are below the main text of the note in the horizontal RecyclerView at a size of 90dp*90dp.Question
:
How to make it so that when you click on the thumbnail of an image, you can see it in a larger view as in a regular Gallery and, if several pictures are attached to a note, then I know how to create a listener, assign it to a view in recyclerview, then I don’t understand at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wayloren, 2019-02-01
@Wayloren

Open a new activity with a ViewPager, as an option. If you need animation, look towards the Activity transition, if not - just remember the position of the clicked photo and open the ViewPager on the desired tab using the methodmPager.setCurrentItem(НомерКартинки);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question