<?xml version="1.0" encoding="utf-8"?>
<layout
    android:soundEffectsEnabled="true"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <data>
        <variable
            name="posts"
            type="com.visticsolution.posterbanao.model.UserPostModel" />
    </data>

    <androidx.cardview.widget.CardView
        android:layout_margin="7dp"
        app:cardCornerRadius="8dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:maxHeight="300dp">
            <ImageView
                android:id="@+id/iv"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/btxt0"
                android:imageURL="@{posts.post_url}"/>

        </RelativeLayout>
        <ImageView
            android:id="@+id/video_type"
            android:layout_margin="@dimen/_5sdp"
            android:layout_width="@dimen/_25sdp"
            android:layout_height="@dimen/_25sdp"
            android:src="@drawable/exo_controls_play"
            android:background="@drawable/rounded_bg"
            android:layout_gravity="bottom"
            android:isVideo="@{posts.post_url}"/>

        <ImageView
            android:id="@+id/view_image"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:src="@drawable/selected_border"
            android:visibility="invisible"
            app:tint="@color/app_color" />

    </androidx.cardview.widget.CardView>
</layout>