+0
Daily
5,575
stars
1,619
forks
254
watchers
49
prs
389
issues
5
releases
README
Android Image Slider
This is an amazing image slider for the Android platform. I decided to open source this because there is really not an attractive, convenient slider widget in Android.
You can easily load images from an internet URL, drawable, or file. And there are many kinds of amazing animations you can choose. :-D
Demo
!
Download Apk
Usage
Step 1
Gradle
groovy
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'
}
Maven
xml
com.squareup.picasso
picasso
2.3.2
com.nineoldandroids
library
2.4.0
com.daimajia.slider
library
1.1.2
apklib
Eclipse
For Eclipse users, I provided a sample project which orgnized as Eclipse way. You can download it from here, and make some changes to fit your project.
Notice: It's the version of 1.0.9, it may not update any more. You can update manually by yourself.
Step 2
Add permissions (if necessary) to your AndroidManifest.xml
xml
Note: If you want to load images from the internet, you need both the INTERNET and READ_EXTERNAL_STORAGE permissions to allow files from the internet to be cached into local storage.
If you want to load images from drawable, then no additional permissions are necessary.
Step 3
Add the Slider to your layout:
java
There are some default indicators. If you want to use a provided indicator:
java
Code example
====
Advanced usage
Please visit Wiki
Thanks
- Picasso
- NineOldAndroids
- ViewPagerTransforms
About me
I am a student in mainland China. I love Google, love Android, love everything that is interesting. If you get any problems when using this library or you have an internship opportunity, please feel free to email me. :smiley:Top issues
#93can't release memory automatically17 comments · 2015-04-25#82Disable slide (not autocycle) when theres only one image?17 comments · 2015-03-19#393Compatible with the las Picasso Version15 comments · 2018-07-25#45image from certain URL dont load15 comments · 2014-10-23#386Slider jumping fast at start11 comments · 2018-05-26#223第一张图片闪过11 comments · 2016-05-11#292Transparent status bar10 comments · 2017-01-31#183How to hide the Grey Background of The Description10 comments · 2016-01-12