如何将视图扩展到抽屉布局之外?

How to extend the view out of drawer layout?

我需要在抽屉布局上添加一个 View,如图所示。如何做到这一点?我需要在每个屏幕上始终在应用程序上显示红色部分。

使用FrameLayout作为父ViewGroup,并在FrameLayout

中实现DrawerLayout