fragment_user_personal.xml 1.12 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:id="@+id/layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clipToPadding="true"
            android:clipChildren="true"
            android:paddingTop="5dp"
            android:background="@color/gray_bg"
            app:adapter="@{listAdapter}"
            app:layoutManager="@{layoutManager}"/>

    </RelativeLayout>
</layout>