如何在附加屏幕截图的滚动抽屉后隐藏白色

时间:2022-06-14 06:28:30

I am using the library MaterialDrawer in my android application to create the drawer, but it shows some white after scrolling the drawer.

我在我的Android应用程序中使用库MaterialDrawer创建抽屉,但在滚动抽屉后显示一些白色。

如何在附加屏幕截图的滚动抽屉后隐藏白色

How may I hide this?

我怎么能隐瞒这个?

2 个解决方案

#1


0  

To remove fading edges include this lines in your xml layout android:fadingEdge="none"

要删除淡化边缘,请在xml布局中包含以下行:android:fadingEdge =“none”

for more details check this link

有关详细信息,请查看此链接

#2


0  

The shown issue is fixed in the latest version of the library.

显示的问题已在最新版本的库中修复。

If you can't update use the Drawer object to get the reference to the ListView with, getListView() you can then modify this property via

如果你无法更新使用Drawer对象来获取对ListView的引用,那么你可以通过getListView()来修改这个属性

drawer.getListView().setFadingEdgeLength(0);
drawer.getListView().setCacheColorHint(Color.TRANSPARENT);

#1


0  

To remove fading edges include this lines in your xml layout android:fadingEdge="none"

要删除淡化边缘,请在xml布局中包含以下行:android:fadingEdge =“none”

for more details check this link

有关详细信息,请查看此链接

#2


0  

The shown issue is fixed in the latest version of the library.

显示的问题已在最新版本的库中修复。

If you can't update use the Drawer object to get the reference to the ListView with, getListView() you can then modify this property via

如果你无法更新使用Drawer对象来获取对ListView的引用,那么你可以通过getListView()来修改这个属性

drawer.getListView().setFadingEdgeLength(0);
drawer.getListView().setCacheColorHint(Color.TRANSPARENT);