fragment_my_video.xml 2.07 KB
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <import type="com.cnlive.gundam.main.ui.adapter.DataBindingAdapter" />

        <import type="android.support.v7.widget.LinearLayoutManager" />

        <variable
            name="layoutManager"
            type="LinearLayoutManager" />

        <variable
            name="listAdapter"
            type="DataBindingAdapter" />
    </data>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.v4.widget.SwipeRefreshLayout
            android:id="@+id/contentView"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <include
                    android:id="@+id/myVideoIncludLayout"
                    layout="@layout/toolbar_my_video" />

                <include layout="@layout/user_divider_head_line" />

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/recycler_view"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    app:adapter="@{listAdapter}"
                    app:layoutManager="@{layoutManager}" />

                <TextView
                    android:id="@+id/empty_view"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_gravity="center"
                    android:gravity="center"
                    android:text="您还没有录制过视频\n\n快去录制吧⁽⁽ଘ( ˊᵕˋ )ଓ⁾⁾*"
                    android:textSize="20sp"
                    android:visibility="gone" />

            </LinearLayout>
        </android.support.v4.widget.SwipeRefreshLayout>
    </RelativeLayout>


</layout>