我的recyclerview中的最后一项是被切断了有谁知道为什么?

时间:2016-08-26 19:32:16

标签: android android-recyclerview coordinator-layout

这是我的布局XML文件,我有一个刷新,recyclerview和协调员布局,我将我的项目膨胀到这个recyclerview

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivitys.ViewPager.Fragments.Home">
<com.yalantis.phoenix.PullToRefreshView
    android:id="@+id/pull_to_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <android.support.v7.widget.RecyclerView
        android:id="@+id/fragment_dashboard_recycler"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    </android.support.v7.widget.RecyclerView>
</com.yalantis.phoenix.PullToRefreshView>

1 个答案:

答案 0 :(得分:0)

将buildlerview依赖项更新为build.gradle文件中的最新版本 然后在xml文件中使用&#34; wrap_content&#34; 作为recyclerview的高度