<?xml version="1.0" encoding="utf-8"?>
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/register_gray"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<!--SwipeRefreshLayout-->
|
<android.support.v4.widget.SwipeRefreshLayout
|
android:id="@+id/realtimechild_sf"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp">
|
<!--套一个linerlayout防止下拉刷新冲突-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/realtimechild_rv"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:divider="@null" />
|
</LinearLayout>
|
</android.support.v4.widget.SwipeRefreshLayout>
|
</LinearLayout>
|
|
<include layout="@layout/item_no_net" />
|
|
<include layout="@layout/item_error_net" />
|
|
<include layout="@layout/item_no_data" />
|
</FrameLayout>
|