<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="in.techware.lataxidriver.activity.RequestConfirmationActivity">

    <include
        layout="@layout/fragment_map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/card_home_details"
        android:layout_gravity="top"/>

    <android.support.v7.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:layout_margin="10dp"
        android:minHeight="170dp"
        android:padding="20dp"
        app:cardBackgroundColor="@color/white"
        app:cardCornerRadius="4dp"
        app:cardElevation="5dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:layout_marginBottom="60dp"
            android:gravity="center"
            android:orientation="horizontal"
            android:paddingLeft="20dp"
            android:paddingRight="20dp"
            android:paddingTop="20dp">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:orientation="vertical">

                <in.techware.lataxidriver.widgets.CustomTextView
                    android:id="@+id/txt_request_confirmation_eta"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/sample_duration"
                    android:textColor="@color/text_red_3"
                    android:textSize="30sp"
                    android:textStyle="bold"/>

                <in.techware.lataxidriver.widgets.CustomTextView
                    android:id="@+id/txt_request_confirmation_distance"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/sample_distance"
                    android:textAppearance="?android:attr/textAppearanceMedium"
                    android:textColor="@color/text_4"
                    android:textStyle="bold"/>

            </LinearLayout>


            <View
                android:id="@+id/view_trip_confirmation"
                android:layout_width="1dp"
                android:layout_height="80dp"
                android:layout_marginTop="10dp"
                android:background="@color/text_1"/>

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:orientation="vertical">

                <FrameLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dp"
                        android:background="@drawable/bg_car_details"
                        android:scaleType="centerInside"/>

                    <ImageView
                        android:id="@+id/iv_request_confirmation_car_type"
                        android:layout_width="80dp"
                        android:layout_height="wrap_content"
                        android:layout_gravity="bottom|center_horizontal"
                        android:scaleType="centerInside"
                        android:src="@drawable/ic_car_la_landing_page"/>
                </FrameLayout>

                <in.techware.lataxidriver.widgets.CustomTextView
                    android:id="@+id/txt_request_confirmation_car_type"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:gravity="center"
                    android:textColor="@color/text_2"
                    android:text="@string/sample_car_type"
                    android:textAppearance="?android:attr/textAppearanceSmall"/>

            </LinearLayout>


        </LinearLayout>

        <in.techware.lataxidriver.widgets.CustomButton
            android:id="@+id/btn_request_confirmation_confirm"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal|bottom"
            android:layout_marginBottom="20dp"
            android:layout_marginTop="120dp"
            android:background="@drawable/btn_click_grayblack_rectangle_with_semicircle_edge"
            android:gravity="center"
            android:minHeight="40dp"
            android:onClick="onRequestConfirmationConfirmClick"
            android:paddingLeft="20dp"
            android:paddingRight="20dp"
            android:text="@string/btn_tap_to_confirm"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="@color/white"/>

    </android.support.v7.widget.CardView>

</android.support.design.widget.CoordinatorLayout>
