fragment_live.xml 1.07 KB
<?xml version="1.0" encoding="utf-8"?>
<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="listAdapter"
            type="DataBindingAdapter"/>

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

    </data>

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

        <include
            android:id="@+id/toobar"
            layout="@layout/item_toolbar" />

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

    </RelativeLayout>

</layout>