我已经实现了一个导航抽屉和一个底部导航栏。
我的问题是导航抽屉的高度与内容框架的高度一样。因此,当打开导航抽屉时,底部导航栏将被部分隐藏,就像主布局的内容一样。
我尝试了以下方法来克服此问题:
但是这样抽屉不知道高度的变化。
这是我要完成的工作:
让我们的布局是这样的:
<RelativeLayout>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- The main content view -->
<!-- The navigation drawer -->
</android.support.v4.widget.DrawerLayout>
<!-- Your bottom bar --!>
</RelativeLayout>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句