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

Think about what we can do for gesture navigation #197

Open
takahirom opened this issue Jan 13, 2020 · 3 comments
Open

Think about what we can do for gesture navigation #197

takahirom opened this issue Jan 13, 2020 · 3 comments

Comments

@takahirom
Copy link
Member

Kind (Required)

  • Improvement

Overview (Required)

  • For example, swipe left to drawer everywhere like Twitter
  • Anyone want a good idea and implement it?

Links

@furusin
Copy link
Contributor

furusin commented Jan 16, 2020

This is one of my answer
https://qiita.com/furusin_oriver/items/e2d20325fefded070cb6

@arkenous
Copy link
Contributor

arkenous commented Jan 19, 2020

If you use androidx.drawerlayout:drawerlayout:1.1.0-alpha02 or later, DrawerLayout supports (treats) Android 10's gesture navigation automatically.
When app is running on devices that use gesture navigation, drawers can open using a long press and swipe, and system gesture for Back using swipe can also be used too.

https://developer.android.com/jetpack/androidx/releases/drawerlayout#1.1.0-alpha02
https://developer.android.com/guide/navigation/gesturenav?hl=en#back-gestures

Simplest way to resolve this is to respect for Android's default behavior. Many of Android smartphone users are expecting system's default behavior, so it would be preferable to use above way, I think.

@pps5
Copy link
Contributor

pps5 commented Jan 20, 2020

I agree with k3nsuk3's opinion.

While furusin's answer and Twitter-like behavior is good, the swipe action conflicts with tab switch action between days or favorite. It requires more consideration not to conflict, but I have no idea to do so.

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

No branches or pull requests

4 participants