不要使用Android导航抽屉显示叠加层 [英] Don't display the overlay with the Android Navigation Drawer

查看:71
本文介绍了不要使用Android导航抽屉显示叠加层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以删除最近实施的导航抽屉所做的自动覆盖? (第二张图片上的灰色层)

I was wondering if it's possible to remove the automatic overlay made by the recently implemented Navigation Drawer ? (The grey layer on the second picture)

推荐答案

您只需将setScrimColor(int color)设置为DrawerLayout:

mDrawerLayout.setScrimColor(Color.WHITE);
// OR
mDrawerLayout.setScrimColor(Color.TRANSPARENT);

以下是Android API的官方文档: DrawerLayout- setScrimColor().

Here is the official documentation from Android API: DrawerLayout - setScrimColor().

希望这可以解决您的问题! :)

Hope this solves your problem! : )

这篇关于不要使用Android导航抽屉显示叠加层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆