0

I am particularly new to android development, I have a concept on which I have to work on which is similar to the twitter profile slides. enter image description here enter image description here

as you can see in the twitter app when I open someones profile pic1 is shown and as I slide over the description of that profile is shown. I want to do something similar in my app

the concept is to show a music track with play button over it and then as i slide over I have another music track with play button over it and so on.

as much as the research I could do I came across the viewpager class but the documentation is not well written for new comers.

how do I proceed with this, just a basic idea to push me ahead? thanks!

Undo
  • 25,519
  • 37
  • 106
  • 129
user1910290
  • 537
  • 4
  • 15
  • 28

2 Answers2

1

You can use horizontal scrollview for sliding and use gestureDetector to detect left/right swipe.

0

Either Use ViewPager for that.It is a specifically use for sliding pages without scrolling.

Use this link

kaushal trivedi
  • 3,405
  • 3
  • 29
  • 47