Office Hours — Today, September 7

Thursday, September 5

Sep 7
3:50 PM
Mark M.
has entered the room
3:55 PM
Mark M.
turned on guest access
4:40 PM
Scott W.
has entered the room
4:45 PM
Scott W.
hello!
Mark M.
hello, Scott
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.
oh I remember
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
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
4:50 PM
Scott W.
do you have a recommendation for fixing this?
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?
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
"Drawers are now swiped open using a long press and swipe"
"Update for Gesture Nav Support: DrawerLayout now sets system gesture exclusion rects to permit swiping drawers open."
ideally, they would have shipped a stable 1.1.0 before Android 10 shipped, but ¯\_(ツ)_/¯
but, the idea is that if you are on the current DrawerLayout, things should work better
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
4:55 PM
Scott W.
trying to get this report
I'll figure that out later and make sure I'm using the latest
Mark M.
it is the dependencies task
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
substitute in your module name
(if your module is not named app)
Scott W.
looks like it's in com.google.android.material:material:1.0.0
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

Thursday, September 5

 

Office Hours

People in this transcript

  • Mark Murphy
  • Scott Wehby