2 kotlin classes for:
- Swiping left to right
- Swiping right to left
Recording:
recording_swipe.mp4
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.Dalakoti07:android-simple-swipe:Tag'
}
<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"/>