<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:gravity="center"
    android:orientation="vertical">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="10dp"
        android:gravity="center"
        android:text="View reason for absence"
        android:textAllCaps="false"
        android:textColor="@color/btn_bg_color"
        android:textSize="18sp"
        android:textStyle="bold" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginStart="5dp"
        android:layout_marginEnd="5dp"
        android:orientation="vertical">

        <TextView
            android:id="@+id/txtParticipantName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="start"
            android:text="Participant Name : Name"
            android:textColor="@color/material_bluegrey800"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/txtDealerName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="start"
            android:text="Dealer Name : Name"
            android:textColor="@color/material_bluegrey800"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/txtAreaManger"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="start"
            android:text="Area manger Name : Name"
            android:textColor="@color/material_bluegrey800"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/trainerReason"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="start"
            android:text="Reason Given by Trainer : Name"
            android:textColor="@color/material_bluegrey800"
            android:textSize="16sp" />


    </LinearLayout>

    <RelativeLayout
        android:id="@+id/rLayoutDecline"
        android:layout_width="300dp"
        android:layout_height="44dp"
        android:layout_gravity="center"
        android:layout_margin="10dp"
        android:background="@drawable/custom_border"
        android:gravity="center">

        <TextView
            android:id="@+id/txtDecline"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@android:color/transparent"
            android:gravity="center|start"
            android:hint="Reason for Cancel*"
            android:paddingStart="6dp"
            android:paddingEnd="6dp"
            android:textColor="@color/material_bluegrey800"
            android:textSize="16sp" />

        <View
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="#33969696" />

        <ImageButton
            android:id="@+id/imgDecline"
            android:layout_width="44dp"
            android:layout_height="44dp"
            android:layout_alignParentEnd="true"
            android:background="@android:color/transparent"
            android:contentDescription="@string/app_name"
            android:scaleType="fitCenter"
            android:src="@drawable/spinner_drop" />

    </RelativeLayout>

    <EditText
        android:id="@+id/edtReason"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:background="@drawable/custom_border"
        android:cursorVisible="false"
        android:gravity="top|left"
        android:hint="Enter the reason"
        android:inputType="textMultiLine|textPostalAddress"
        android:lines="4"
        android:maxLines="8"
        android:scrollbars="vertical"
        android:textColor="@color/material_bluegrey800"
        android:textSize="16sp" />

    <LinearLayout
        android:id="@+id/layoutBtn"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="10dp"
        android:gravity="center"
        android:orientation="horizontal">


        <Button
            android:id="@+id/btnCancel"
            android:layout_width="wrap_content"
            android:layout_height="28dp"
            android:layout_gravity="center"
            android:layout_marginEnd="20dp"
            android:background="@drawable/btn_login_shadow"
            android:gravity="center"
            android:text="Cancel"
            android:textColor="@color/white"
            android:textSize="12dp" />

        <Button
            android:id="@+id/btnClose"
            android:layout_width="wrap_content"
            android:layout_height="28dp"
            android:layout_gravity="center"
            android:background="@drawable/btn_login_shadow"
            android:gravity="center"
            android:text="Close"
            android:textColor="@color/white"
            android:textSize="12dp"
            android:visibility="gone" />

        <Button
            android:id="@+id/btnSubmit"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="@drawable/btn_login_shadow"
            android:text="Submit"
            android:textColor="@color/white"
            android:textSize="12dp" />
    </LinearLayout>

</LinearLayout>



