Answer the question
In order to leave comments, you need to log in
How to open an image on click?
I'm just starting to learn Android development, using the book Android Programming: The Big Nerd Ranch Guide. The task was given to implement the opening of the image in full screen by clicking on the thumbnail, but I can not choose the appropriate option. Should I create an Activity/Fragment to show only one image? I thought about the option when I would just have an image to fit the screen and black frames on click if it does not occupy the entire area (that is, an ImageView on top of the rest of the interface with a black background). Is it worth doing this or is it a bad option?
And if I want to flip through several images, what tool should I use?
Thanks in advance
Answer the question
In order to leave comments, you need to log in
You need to use Fragment, it will have one ImageView.
For flipping use RecyclerView + LinearLayoutManager(Horizontal) + PagerSnapHelper.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question