<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context=".FragmentSearch">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:orientation="vertical"
        android:padding="12dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <AutoCompleteTextView
                android:id="@+id/location_home"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginTop="6dp"
                android:layout_marginBottom="6dp"
                android:layout_weight="1"
                android:ems="10"
                android:hint="Search home location"
                android:padding="12dp"
                android:selectAllOnFocus="true" />

            <ImageView
                android:id="@+id/my_loc"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:src="@android:drawable/ic_menu_mylocation" />
        </LinearLayout>


        <AutoCompleteTextView
            android:id="@+id/location_home_departure"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:ems="10"
            android:hint="Search departure airport"
            android:padding="12dp"
            android:selectAllOnFocus="true" />

        <AutoCompleteTextView
            android:id="@+id/location_arrival_airport"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:ems="10"
            android:hint="Search arrival airport"
            android:padding="12dp"
            android:selectAllOnFocus="true" />

        <AutoCompleteTextView
            android:id="@+id/location_arrival_"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:ems="10"
            android:hint="Search destination"
            android:padding="12dp"
            android:selectAllOnFocus="true" />

        <android.support.v7.widget.CardView
            style="@style/cardview_theme"
            android:layout_marginBottom="12dp">

            <TextView
                android:id="@+id/currency_one"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="12dp"
                android:text="GPB - Pound Sterling"
                android:textColor="@android:color/white"
                android:textSize="18sp" />
        </android.support.v7.widget.CardView>

        <android.support.v7.widget.CardView
            style="@style/cardview_theme"
            android:layout_marginBottom="3dp">

            <TextView
                android:id="@+id/currency_teo"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="12dp"
                android:text="EUR - Euro"
                android:textColor="@android:color/white"
                android:textSize="18sp" />
        </android.support.v7.widget.CardView>

    </LinearLayout>

    <TextView
        android:id="@+id/submit"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Submit"
        android:textColor="@android:color/holo_blue_bright"
        android:textSize="18sp"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="36dp"
        android:layout_marginRight="24dp"/>

</RelativeLayout>