In the layout containing your list, add two attributes to your ListView: {代码...} The fitsSystemWindows attribute makes your ListView fit to the edges of the action bar and navigation bar (instead of going under them), and clipToPadding makes items of your ListViews and ScrollViews scroll under ...
更新 只需将一个属性添加到 BottomNavigationView 材质库 AndroidX {代码...} 支持库版本 28.0.0 或 higher version {代码...} 注意:-您的 XML 应遵循以下旧答案中给出的 XML 结构。 **旧答案(仍然有效)** 您需要一个辅助类来执行此操作。此解决方案类似于 Google Material Design Guideline。 创建一个类 BottomNavi...