<?xml version="1.0" encoding="utf-8"?>
|
<layout >
|
<data>
|
<import type="com.doumee.lib_coremodel.base.BaseViewModel"/>
|
<variable
|
name="model"
|
type="com.doumee.keyCabinet.ui.face.ErrVM" />
|
</data>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context=".ui.main.ErrActivity">
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recycler_view"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toTopOf="@+id/tb_back"
|
android:layout_marginBottom="30dp"
|
/>
|
|
<ImageView
|
android:id="@+id/im_empty"
|
android:layout_width="400dp"
|
android:layout_height="400dp"
|
android:src="@mipmap/default_nodata"
|
app:layout_constraintTop_toTopOf="@+id/recycler_view"
|
app:layout_constraintBottom_toBottomOf="@+id/recycler_view"
|
app:layout_constraintStart_toStartOf="@+id/recycler_view"
|
app:layout_constraintEnd_toEndOf="@+id/recycler_view"
|
android:visibility="@{model.emptyVisibility}"/>
|
|
<TextView
|
android:id="@+id/tb_back"
|
android:layout_width="wrap_content"
|
android:layout_height="50dp"
|
android:text="@string/back_syy"
|
android:textSize="20sp"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:background="@drawable/shape_r46_xk"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginBottom="30dp"
|
android:paddingLeft="80dp"
|
android:paddingRight="80dp"
|
app:commandType="@{1}"
|
app:onClickCommand="@{model.myTypeCommand}"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|