在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Android  網(wǎng)絡(luò)安全/ 請(qǐng)問RecyclerView被AppBarLayout/Toolbar擋住了怎么

請(qǐng)問RecyclerView被AppBarLayout/Toolbar擋住了怎么解決

請(qǐng)問一下這種情況是什么原因,謝謝!

clipboard.png

應(yīng)該是從0開始的,但是前3個(gè)擋住了
clipboard.png

這是我的布局代碼

<?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"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">


  <android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:background="?attr/colorPrimary"
      app:popupTheme="@style/AppTheme.PopupOverlay"
      app:layout_scrollFlags="scroll|enterAlways"/>

  </android.support.design.widget.AppBarLayout>

  <android.support.v7.widget.RecyclerView
    android:id="@+id/countdownList"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbars="vertical" />

  <android.support.design.widget.FloatingActionButton
    android:id="@+id/fab_add"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_margin="@dimen/fab_margin"
    android:src="@android:drawable/ic_input_add"/>

</android.support.design.widget.CoordinatorLayout>
回答
編輯回答
亮瞎她

CoordinatorLayout的本質(zhì)是FrameLayout,肯定會(huì)發(fā)生遮擋的,要不給rv加個(gè)margin top

2017年3月7日 19:49
編輯回答