Simple Android Swipe Library

2 kotlin classes for:

  • Swiping left to right
  • Swiping right to left

Screenshots


How to use library

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency

dependencies {
    implementation 'com.github.Dalakoti07:android-simple-swipe:Tag'
}

Use in XML

<com.dalakoti.simpleswipe.SwipeButtonRightToLeft
        android:layout_marginTop="30dp"
        app:centerTextRL="Swipe to mark No Show"
        app:primaryColorRL="#ff3b30"
        app:secondaryColorRL="#f7d0ce"
        android:layout_marginEnd="20dp"
        android:layout_marginStart="20dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"/>

Or

<com.dalakoti.simpleswipe.SwipeButtonLeftToRight
        android:layout_marginTop="40dp"
        app:centerTextLR="Navigate"
        app:primaryColorLR="#2C66E3"
        app:secondaryColorLR="#cdd8f1"
        android:layout_marginEnd="20dp"
        android:layout_marginStart="20dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"/>

GitHub

View Github