This is an amazing image slider in Android platform. I decide to open source this because there is really not an attractive, and convenient slide widget in Android.
You can easily load image from net, drawable or file. And there are many kind of amazing animations you can choose. :-D
##Demo
##Usage
Step1:
If you are using Android Studio, just add a one line code to your project root build.gradle
.
dependencies{
compile 'com.daimajia.slider:library:1.0.4@aar'
}
If you are using maven to manage your project, add below to your pom.xml
<dependency>
<groupId>com.daimajia.slider</groupId>
<artifactId>library</artifactId>
<version>1.0.4</version>
<type>apklib</type>
</dependency>
Step2: add storage
and internet
permission.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Step3: add layout in your xml.
<com.daimajia.slider.library.SliderLayout
android:id="@+id/slider"
android:layout_width="match_parent"
android:layout_height="200dp"
/>
There are some default indicators, while, if you want to custom your own indicator:
<com.daimajia.slider.library.Indicators.PagerIndicator
android:id="@+id/custom_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
/>
====
##Advanced usage
Please visit Wiki
##About me
A student in China mainland. 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 relax to email me. :-D