This README.md
file is under heavy edition and could change in next days. Please, wait til this section is removed
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
And add this in build.gradle
file of the module you want to use the library.
dependencies {
...
compile('com.github.urizev:diapo:0.4') {
}
}
Here's a basic example that launches a slideshow with .
int index;
ArrayList<String> urls;
Intent intent = new Intent(context.getActivity(), DiapoActivity.class);
intent.putExtra(Diapo.EXTRA_IMAGE_URLS, urls);
intent.putExtra(Diapo.EXTRA_IMAGE_INDEX, index);
context.startActivity(intent);
Finally, add this to your AndroidManifest.xml
.
<activity android:name="org.urizev.diapo.DiapoActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
TBC
You can download the latest sample APK from Google Play
Having the sample project installed is a good way to be notified of new releases. Although Watching this repository will allow GitHub to email you whenever I publish a release.