Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daimajia/AndroidImageSlider
An amazing and convenient Android image slider.
https://github.com/daimajia/AndroidImageSlider
Last synced: 14 days ago
JSON representation
An amazing and convenient Android image slider.
- Host: GitHub
- URL: https://github.com/daimajia/AndroidImageSlider
- Owner: daimajia
- License: mit
- Created: 2014-06-02T06:04:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T16:41:17.000Z (about 4 years ago)
- Last Synced: 2024-10-21T10:33:47.063Z (18 days ago)
- Language: Java
- Size: 2.06 MB
- Stars: 5,627
- Watchers: 255
- Forks: 1,660
- Open Issues: 309
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-android-ui - AndroidImageSlider
- awesome-android-ui - AndroidImageSlider
- awesome-android-ui - AndroidImageSlider
README
# Android Image Slider [![Build Status](https://travis-ci.org/daimajia/AndroidImageSlider.svg)](https://travis-ci.org/daimajia/AndroidImageSlider)
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/daimajia/AndroidImageSlider?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
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
![](http://ww3.sinaimg.cn/mw690/610dc034jw1egzor66ojdg20950fknpe.gif)[Download Apk](https://github.com/daimajia/AndroidImageSlider/releases/download/v1.0.8/demo-1.0.8.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.2com.nineoldandroids
library
2.4.0com.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](https://github.com/daimajia/AndroidImageSlider/releases/download/v1.0.9/AndroidImageSlider-Eclipse.zip), 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](https://github.com/daimajia/AndroidImageSlider/blob/master/demo%2Fsrc%2Fmain%2Fjava%2Fcom%2Fdaimajia%2Fslider%2Fdemo%2FMainActivity.java)
====
## Advanced usagePlease visit [Wiki](https://github.com/daimajia/AndroidImageSlider/wiki)
## Thanks- [Picasso](https://github.com/square/picasso)
- [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids)
- [ViewPagerTransforms](https://github.com/ToxicBakery/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](mailto:[email protected]). :smiley: