0

这是我的布局 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>

4

1 回答 1

0

将您的 recyclerview 依赖项更新为build.gradle 文件中的最新版本,然后在您的 xml 文件中使用“wrap_content”作为 recyclerview 的高度

于 2016-08-26T19:47:25.007 回答