-3

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:

  • Universal Image Loader for Android: for asynchronous image loading.
  • ViewPagerIndicator: library to bring circle indicator with ViewPager.

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?

AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
  • *Is it a good solution?* primarily opinion-based ... *Or can I obtain the same behavior without using external library but only stuff provided by the Android SDK?* yes, by rewriting the libraries code *Can you give me some suggestion about the right way to implement this feature?* too broad – Selvin Jun 02 '16 at 10:27
  • Check this link http://stackoverflow.com/questions/18413309/how-to-implement-a-viewpager-with-different-fragments-layouts – Ashish Shukla Jun 02 '16 at 10:29
  • is it solved or not? – Aditya Vyas-Lakhan Jun 25 '16 at 03:28

3 Answers3

1

The best way is viewpager with Universal Image Loader for Android

1

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

SaravInfern
  • 3,338
  • 1
  • 20
  • 44
1

Instead of using viewpager i suggest you to use FancyCoverFlow

<it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow
        android:id="@+id/coverflow"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        coverflow:coverHeight="@dimen/cover_height"
        coverflow:coverWidth="@dimen/cover_width"
        coverflow:maxScaleFactor="1.5"
        coverflow:reflectionGap="0px"
        coverflow:rotationThreshold="0.5"
        coverflow:scalingThreshold="0.5"
        coverflow:spacing="0.6" />
Aditya Vyas-Lakhan
  • 13,409
  • 16
  • 61
  • 96