看了很多关于导航栏置底的文章
核心代码就这一句
android:layout_alignParentBottom=“true”
不过我的布局文件是include进来的,发现不生效。
外加一个Linear Layout 发现生效了
这里记录一下

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<include layout="@layout/bottom"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_gravity="bottom"
android:layout_alignParentBottom="true"/>
</LinearLayout>