Last active
December 28, 2015 02:08
-
-
Save ccjeng/998d10719a3f4e4ea2db to your computer and use it in GitHub Desktop.
Android SwipeBack Sample : com.hannesdorfmann:swipeback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onCreate(Bundle saved){ | |
super.onCreate(saved); | |
// Init the swipe back | |
SwipeBack.attach(this, Position.LEFT) | |
.setContentView(R.layout.activity_simple) | |
.setSwipeBackView(R.layout.swipeback_default); | |
} | |
@Override | |
public void onBackPressed(){ | |
super.onBackPressed(); | |
overridePendingTransition(R.anim.swipeback_stack_to_front, | |
R.anim.swipeback_stack_right_out); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment