<?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>
|
|
<variable
|
name="item"
|
type="com.xw.common.base.FileSelectBean" />
|
|
<variable
|
name="listener"
|
type="com.xw.common.base.ImageEventListener" />
|
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="@dimen/dp_63"
|
android:layout_height="@dimen/dp_63"
|
android:layout_margin="@dimen/dp_5">
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:scaleType="centerCrop"
|
app:riv_corner_radius="@dimen/dp_5"
|
android:src="@mipmap/ic_camera"
|
android:onClick="@{()->listener.addImage(item)}"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|