<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:gravity="center"
    android:orientation="vertical">
    <androidx.cardview.widget.CardView
        android:layout_marginHorizontal="@dimen/_30sdp"
        app:cardElevation="@dimen/_10sdp"
        app:cardBackgroundColor="@color/cardBackgroundColor"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:cardCornerRadius="@dimen/_15sdp">
        <LinearLayout
            android:paddingBottom="@dimen/_28sdp"
            android:gravity="center"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:background="@color/success"
                android:id="@+id/title_tv"
                android:gravity="center"
                android:padding="@dimen/_10sdp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:text="@string/add_text"
                android:textColor="#FFFFFF"
                android:textSize="@dimen/_18sdp"
                android:textStyle="bold" />

            <com.visticsolution.posterbanao.editor.View.AutoFitEditText
                android:padding="@dimen/_10sdp"
                android:id="@+id/auto_fit_edit_text"
                android:layout_width="fill_parent"
                android:layout_height="130dp"
                android:layout_centerInParent="true"
                android:ems="10"
                android:gravity="center"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:hint="Add Text here"
                android:imeActionLabel="Done"
                android:imeOptions="actionPrevious"
                android:inputType="textMultiLine"
                android:isScrollContainer="true"
                android:maxLength="250"
                android:textColor="@color/textColor"
                android:textColorHint="@color/textColor"
                android:textSize="@dimen/_15sdp" />


        </LinearLayout>
    </androidx.cardview.widget.CardView>
    <LinearLayout
        android:layout_gravity="center_horizontal"
        android:elevation="20dp"
        android:layout_marginTop="-30dp"
        android:layout_marginHorizontal="@dimen/_50sdp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:id="@+id/btnCancelDialog"
            android:layout_weight="1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/_8sdp"
            android:layout_marginTop="@dimen/_8sdp"
            android:layout_marginEnd="@dimen/_8sdp"
            android:layout_marginBottom="@dimen/_8sdp"
            android:background="@drawable/rounded_bg"
            android:backgroundTint="#8E8E8E"
            android:gravity="center"
            android:paddingVertical="@dimen/_8sdp"
            android:text="@string/cancel_"
            android:textColor="@color/white"
            android:textSize="@dimen/_15sdp" />
        <TextView
            android:id="@+id/btnAddTextSDialog"
            android:layout_weight="1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/_8sdp"
            android:layout_marginTop="@dimen/_8sdp"
            android:layout_marginEnd="@dimen/_8sdp"
            android:layout_marginBottom="@dimen/_8sdp"
            android:background="@drawable/rounded_bg"
            android:backgroundTint="#4CAF50"
            android:gravity="center"
            android:paddingVertical="@dimen/_8sdp"
            android:text="@string/add"
            android:textColor="@color/white"
            android:textSize="@dimen/_15sdp" />
    </LinearLayout>
</LinearLayout>