W
W
wolfak2016-06-23 21:37:17
Java
wolfak, 2016-06-23 21:37:17

How to implement image slider in android?

Good evening, dear friends. Once again I encounter a problem, this time I can’t implement the ability to switch (forward and backward) the image by moving it to the edge of the screen (as in popular social network applications, well, and uavito, and when you click you need to go to a new activity.
The classes themselves for I have image switching, as well as a linearlayout inside which is an ImageView in which the image changes, but I can’t find a suitable action handler in any way. (OnClick does not work, but I need it to go to a new activity)
These handlers are:
stackoverflow.com/questions/13162386/next-and-prev...
stackoverflow.com/questions/4139288/android-how-to...
I hope for the help of experienced people. First of all, thanks again for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sklyarov, 2016-06-24
@wolfak

Well, yes, ViewPager is needed ... But why make your own bike? Full of ready-made image sliders! Personally, I like this one: https://github.com/daimajia/AndroidImageSlider

A
Artem Gapchenko, 2016-06-24
@artemgapchenko

ViewPager is not for you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question