Skip to content

Drag the image to show the one below

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
license.txt
Notifications You must be signed in to change notification settings

MarcoMirisola/SlideToRevealImage-Android

Build Status

Before and after image slider

  <it.marcomirisola.SlideToRevealImage
        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://jitpack.io' }
      
//and add this to your module level build.gradle file
 implementation 'com.github.MarcoMirisola:SlideToRevealImage-Android:v2.1.2'

The library uses Glide for image loading

This project is heavy based from before_after_slider from @developer--

About

Drag the image to show the one below

Topics

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
license.txt

Stars

Watchers

Forks

Packages

No packages published

Languages