<?xml version="1.0" encoding="utf-8"?>
<layout
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <data>
        <import type="android.view.View"/>
        <variable
            name="language"
            type="com.visticsolution.posterbanao.model.LanguageModel" />
    </data>

    <LinearLayout
        android:layout_margin="10dp"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:background="@drawable/strock_bg"
            android:backgroundTint="@color/graycolor"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">


            <de.hdodenhof.circleimageview.CircleImageView
                android:id="@+id/imageView"
                android:layout_width="@dimen/_45sdp"
                android:layout_height="@dimen/_45sdp"
                android:layout_marginStart="@dimen/_15sdp"
                android:layout_marginTop="@dimen/_10sdp"
                android:layout_marginEnd="@dimen/_10sdp"
                android:layout_marginBottom="@dimen/_10sdp"
                android:src="@drawable/btxt0"
                android:imageURL="@{language.image}"
                app:civ_border_color="@color/graycolor"
                app:civ_border_width="2dp"
                app:tint="@color/textColor" />

            <TextView
                android:id="@+id/tvName"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_toEndOf="@id/imageView"
                android:layout_centerVertical="true"
                android:gravity="center_vertical"
                android:includeFontPadding="false"
                android:text="@{language.language_name}"
                android:textColor="@color/textColor"
                android:textSize="18sp" />


            <androidx.appcompat.widget.SwitchCompat
                android:id="@+id/switchBtn"
                android:layout_centerVertical="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_marginStart="@dimen/_5sdp"
                android:layout_marginTop="@dimen/_5sdp"
                android:layout_marginEnd="@dimen/_15sdp"
                android:layout_marginBottom="@dimen/_5sdp"
                android:checked="true"
                app:track="@drawable/switch_track"
                android:thumb="@drawable/switch_thumb"/>

        </RelativeLayout>


    </LinearLayout>
</layout>
