<?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"
|
xmlns:tools="http://schemas.android.com/tools">
|
|
<data>
|
<variable
|
name="url"
|
type="String" />
|
</data>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<FrameLayout
|
android:id="@+id/fl_image"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintDimensionRatio="1:1"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
>
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_margin="7dp"
|
>
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="?attr/electronicFileAddBackgroundColor"
|
app:round="10dp"
|
/>
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:id="@+id/iv_image"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:imageUrl="@{url}"
|
app:round="10dp"
|
/>
|
<FrameLayout
|
android:id="@+id/fl_play"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:visibility="gone"
|
tools:visibility="visible"
|
>
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@drawable/ps_ic_shadow_bg"
|
app:round="10dp" />
|
<ImageView
|
android:id="@+id/iv_play"
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:background="@drawable/ps_ic_video_play"
|
android:layout_gravity="center"
|
/>
|
</FrameLayout>
|
</FrameLayout>
|
|
<ImageView
|
android:id="@+id/iv_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_image_delete"
|
android:layout_gravity="top|end"
|
/>
|
<ImageView
|
android:id="@+id/iv_select"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_image_select"
|
android:layout_gravity="top|start"
|
/>
|
</FrameLayout>
|
<androidx.cardview.widget.CardView
|
android:id="@+id/fl_add"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_margin="7dp"
|
app:layout_constraintDimensionRatio="1:1"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="0dp"
|
app:cardBackgroundColor="?attr/electronicFileAddBackgroundColor"
|
>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_import_add"
|
android:layout_gravity="center"
|
/>
|
</androidx.cardview.widget.CardView>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|