daimajia /AndroidImageSlider

An amazing and convenient Android image slider.

★ 5,575⑂ 1,619👁 254⑃ 49● 389▤ 5
JavaMITCreated 2014-06-02
Download: v1.0.9AndroidImageSlider-1.0.9 ↓1.0.92014-07-15
+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

Latest release

v1.0.9 v1.0.9 2014-07-15

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON