AndroidImageSlider

by daimajia

An amazing and convenient Android image slider.

5.6K Stars 1.7K Forks Last release: about 6 years ago (v1.0.9) MIT License 126 Commits 10 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Android Image Slider Build Status

Gitter

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

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:[email protected]'
}

Maven

    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
 


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:


There are some default indicators. If you want to use a provided indicator:


Code example

====

Advanced usage

Please visit Wiki

Thanks

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:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.