Sep 7 |
3:50 PM |
Mark M. |
has entered the room |
Sep 7 |
3:55 PM |
Mark M. |
turned on guest access |
Sep 7 |
4:40 PM |
Scott W. |
has entered the room |
Sep 7 |
4:45 PM |
Scott W. |
hello!
|
Mark M. |
hello, Scott
|
Mark M. |
how can I help you today?
|
Scott W. |
I'm trying to remember why exactly I'm here now actually. I set the calendar event without making any notes.
|
Scott W. |
oh I remember
|
Scott W. |
so Android 10 is rolling out
|
Mark M. |
yup!
|
Scott W. |
I turned on gesture controls and noticed the pull out gesture for navigation drawer in gmail is busted
|
Mark M. |
gesture nav is a tire fire
|
Scott W. |
I remember reading that you can define "safe zones" or something
|
Scott W. |
I would assume that Google would have fixed that for gmail
|
Mark M. |
the Gmail team might be behind schedule
|
Scott W. |
well my app uses the same navigation drawer
|
Sep 7 |
4:50 PM |
Scott W. |
do you have a recommendation for fixing this?
|
Scott W. |
Should I abandon the navigation drawer?
|
Mark M. |
turn off gesture nav on your phone! :-)
|
Scott W. |
haha
|
Mark M. |
is this the standard AndroidX DrawerLayout?
|
Mark M. |
or some other AndroidX drawer implementation?
|
Scott W. |
androidx.drawerlayout.widget.DrawerLayout;
|
Mark M. |
androidx.drawerlayout:drawerlayout:1.1.0-alpha03 is the latest, and the 1.1.0 series is supposed to be happier with gesture nav
|
Mark M. |
"Drawers are now swiped open using a long press and swipe"
|
Mark M. |
"Update for Gesture Nav Support: DrawerLayout now sets system gesture exclusion rects to permit swiping drawers open."
|
Mark M. |
|
Mark M. |
ideally, they would have shipped a stable 1.1.0 before Android 10 shipped, but ¯\_(ツ)_/¯
|
Mark M. |
but, the idea is that if you are on the current DrawerLayout, things should work better
|
Mark M. |
at least to the extent that you can get "better" with gesture nav in general (see previous reference to a tire fire)
|
Scott W. |
I'm not even sure which dependency is pulling in the DrawerLayout
|
Mark M. |
you can run a Gradle dependency report to find out, or just add your own implementation line for it to request a particular version
|
Sep 7 |
4:55 PM |
Scott W. |
trying to get this report
|
Scott W. |
I'll figure that out later and make sure I'm using the latest
|
Mark M. |
it is the dependencies task
|
Mark M. |
so, gradle app:dependencies or ./gradlew app:dependencies from the command line
|
Scott W. |
app: is what I was missing
|
Mark M. |
or, you'll find it in the "help" task category for your module in the Gradle tool in Android Studio
|
Mark M. |
substitute in your module name
|
Mark M. |
(if your module is not named app)
|
Scott W. |
looks like it's in com.google.android.material:material:1.0.0
|
Sep 7 |
5:00 PM |
Mark M. |
my guess is that you will need to add in a dedicated line in your dependencies {} to request the alpha for drawerlayout
|
Scott W. |
ok. Thanks for the help today!
|
Mark M. |
sure! happy to help!
|
Scott W. |
has left the room |
Mark M. |
turned off guest access |