Skip to content

SwipeBack is an android library that can finish a activity by using gesture.

License

Notifications You must be signed in to change notification settings

pavel163/SwipeBack

 
 

Repository files navigation

SwipeBack Build Status

Origin SwipeBack

SwipeBack is a android library that can finish a activity by using gesture.

Added DragDirectMode. You can set DragDirectMode to change the swipe direction.

public enum DragDirectMode {
   EDGE,
   VERTICAL,
   HORIZONTAL
}

Usage

Gradle

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}
dependencies {
   	compile 'com.github.pavel163:SwipeBack:1.0.0'
}

SwipeBackActivity

SwipeBackActivity is a base activity for using this library more easier.This Activity will help us to show a shadow.

public class CommonActivity extends SwipeBackActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_common);
        setDragDirectMode(SwipeBackLayout.DragDirectMode.VERTICAL);
    }

}

About

SwipeBack is an android library that can finish a activity by using gesture.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%