Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to customize the system back button inside fragment #5

Closed
antoniomerlin opened this issue Mar 5, 2016 · 2 comments
Closed

how to customize the system back button inside fragment #5

antoniomerlin opened this issue Mar 5, 2016 · 2 comments

Comments

@antoniomerlin
Copy link

Hey, its a nice library thnks for it.
Can you please provide me example for how i can listen for system back button inside a fragment.

@mr-chengwangyong
Copy link
Contributor

Hello, thank you for your attention, because you need to listen to the return key to recover the page, so provides an interface keyBack, you can use it
SetKeyCallBack (KeyCallBack new) {
@OverRide
Boolean onKeyDown public (keyCode int, event KeyEvent) {
False return;
}
});

@antoniomerlin
Copy link
Author

Thank you for your response just if possible can you elaborate the interface for how to implement it. As i am creating root activity from that opening a fragment and from that fragment opening new fragment and as on system backpressed i m returning to previous fragment and again on back pressed i want to display a dialog. In short i want to display over last fragment when user press system back button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants