Saturday, 13 April 2019

SliderView library

An easy to use Android Library to get slides in apps using images or image URLs. Gradle Step 1. Add this in your root build.gradle at the end of repositories:

allprojects { repositories { ... maven { url 'https://jitpack.io' } } } Step 2. Add the dependency

dependencies { implementation 'com.github.nikhil-sachdeva:SliderViewLibrary:1.0' } Add SliderView to your activity_main.xml.

<com.example.sliderviewlibrary.SliderView android:id="@+id/sliderView" android:layoutcenterHorizontal="true" android:layoutwidth="300dp" android:layout_height="200dp"/> Adjust layout height and width based on the size of images to be used.



from The Android Arsenal

No comments:

Post a Comment