Arav Vijay
Arav Vijay

Reputation: 251

Android App Development - Swipe actions

I want to create an informative app that will display a list of content. Each entry in the list corresponds to a slide/page. Users can choose a slide to get to the page. From there, users can swipe left and right to get to other pages. There are many apps in the store like this. I just didn't know what they are called [Slider apps??]. Not sure, that's why I gave a big explanation of what I am planning to do.

Here's what I found out in Android to achieve this. Please correct me if I am missing something. Also please suggest if there's a better way to do this or if I am doing any overkill.

  1. The content is stored in SQLite database so data can be managed and updated easily. This will also help users favorite a slide and I can capture the info in the db.
  2. Use ListView to show the list of content
  3. A ScrollView to display the content in the slide
  4. Question - how do I implement the swipe action? Can I have one Activity to display the page and use it while loading a new page for the swipe action, or would I need multiple Activities?

Thanks.

Upvotes: 0

Views: 619

Answers (1)

AndroGeek
AndroGeek

Reputation: 1300

You can use Horizontal viewpager to accomplish you task. Here is one of the example Horizontal ViewPager . Also there is a very good article with the example here. Please do check it. It might be pretty much helpful.

Upvotes: 1

Related Questions