Open ghost opened 5 years ago
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:descendantFocusability="blocksDescendants" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/btn_load_success" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="加载正常" /> <Button android:id="@+id/btn_load_empty" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="加载为空" /> <Button android:id="@+id/btn_load_error" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="加载错误" /> </LinearLayout> <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:nestedScrollingEnabled="false" /> </LinearLayout>
</android.support.v4.widget.NestedScrollView>
你initPage()传入的是recycler_view么?
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
</android.support.v4.widget.NestedScrollView>