before_after_slider
developer--
71
Visit GitHub RepoWidgets

Before and after image slider

The library uses Glide for image loading
  <com.github.developer__.BeforeAfterSlider
        android:id="@+id/mySlider"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        app:slider_thumb="@mipmap/white_circle" 
        />
  //Inside java
  
  mySlider.setBeforeImage(imgUrl1).setAfterImage(imgUrl2)  
  //to change slider_thumb programmaticaly
  mySlider.setSliderThumb(yourDrawable)
  <!--  to set images from xml  -->
  app:before_image="@mipmap/image1"
  app:after_image="@mipmap/image2"

Gradle dependency

//add this to your top level build.gradle file
 maven { url 'https://dl.bintray.com/kandroid/maven' }
 
//and add this to your module level build.gradle file
  compile 'com.github.developer--:beforeafterslider:1.0.4'

iOS version

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT