javaandroidandroid-layoutandroid-studioandroid-sliding

What is the best way to create a simple slideshow into an Android project?


I am absolutly new in Android development and I am developing my first app.

I have to create something like a slideshow that show an image, when the user moove to the right (with the finger on the screen, what's the correct name in Android jargon?) show the next immage, when it moove to the left the previous one is shown.

I have found this example, I have to implement something like the result shown in the attached video: http://androidopentutorials.com/android-image-slideshow-using-viewpager/

But my doutbs are:

In the prvious tutorial it use 2 external library that have to be added to the project:

Is it a good solution? Or can I obtain the same behavior without using external library but only stuff provided by the Android SDK?

I think that the result of the previous tutorial is what I need for my project but I prefer don't use external library and adhere as much as possible to the standard of Android development.

Can you give me some suggestion about the right way to implement this feature?


Solution

  • You can create slideshow using viewFlipper https://developer.android.com/reference/android/widget/ViewFlipper.html