0
Does anyone know how to make an image slide show on a Horizontalscroolview on android? Or do you know of any library that does this? I need to make a slideshow inside a Fragment
0
Does anyone know how to make an image slide show on a Horizontalscroolview on android? Or do you know of any library that does this? I need to make a slideshow inside a Fragment
2
I use a very good call Androidimageslider
dependencies {
compile "com.android.support:support-v4:+"
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
}
Add permissions to AndroidManifest.xml
<!-- if you want to load images from the internet -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- if you want to load images from a file OR from the internet -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Add Slider to your layout:
<com.daimajia.slider.library.SliderLayout
android:id="@+id/slider"
android:layout_width="match_parent"
android:layout_height="200dp"
/>
This is a basic step by step taken from the self README of the project and translated, for more advanced instructions see the same.
Browser other questions tagged android android-fragment
You are not signed in. Login or sign up in order to post.
You should search for Viewpager: https://developer.android.com/training/animation/screen-slide.html. There are plenty of libraries for this, such as https://github.com/daimajia/AndroidImageSlider/wiki/Start-Usinghttp://www.androidhive.info/2013/09/android-fullscreen-image-slider-with-Swipe-and-Pinch-zoom-Gestures/ Any questions put here, we help you set up. hugs.
– Leonardo Dias