https://istack.dev59.com/Ymbrj.gif
如何停止Android底部导航栏重叠RecyclerView? 我需要解决这个问题,但我不知道该怎么办。我尝试了很多方法,最终无法解决。我需要你的帮助。 我阅读了当前的主题,我认为我的问题更加全面。RecyclerView在屏幕上打印CardView。
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
xmlns:design="http://schemas.android.com/apk/res-auto"
tools:context="com.example.hasan.simpleblog.MainActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#ffffff"
>
<android.support.design.widget.BottomNavigationView
android:id="@+id/NavBot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:background="#ffff"
design:menu="@menu/menu_nav"
>
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="@color/colorPrimary" />
</android.support.design.widget.BottomNavigationView>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
android:layout_alignParentTop="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior" >
</android.support.v4.view.ViewPager>
<android.support.v7.widget.RecyclerView
android:id="@+id/blog_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="?attr/actionBarSize"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp">
</android.support.v7.widget.RecyclerView>
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>