<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <variable
            name="presenter"
            type="com.dayu.order.presenter.ordermaterial.OrderMaterialPresenter" />
    </data>

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white"
        android:orientation="vertical">

        <com.dayu.widgets.LRecyclerView
            android:id="@+id/lv_part"
            setPresenter="@{presenter}"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_marginTop="10dp"
            app:itemType="@layout/item_order_material_list" />
        
        <TextView
            android:id="@+id/apply_part"
            android:layout_width="match_parent"
            android:layout_height="49dp"
            android:gravity="center"
            android:text="新增用料记录"
            android:textColor="@color/white"
            android:textSize="@dimen/sp_16"
            android:onClick="@{()->presenter.applyOrReturnPart()}"
            android:background="@drawable/btn_blue_commom"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:layout_marginBottom="20dp"
            />
    </LinearLayout>
    
</layout>