<?xml version="1.0" encoding="utf-8"?>

<ScrollView

    android:layout_height="match_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="@color/white">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@color/white"
        android:gravity="center"
        android:orientation="vertical"
        android:padding="10dp" >

        <TextView
            android:layout_marginTop="70dp"
            android:id="@+id/txttransferTopUpBalance"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Place Order"
            android:textAlignment="center"
            android:textColor="@color/app_color"
            android:textStyle="bold"
            android:textSize="25dp"/>


        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:orientation="vertical"
            android:layout_marginTop="20dp"
            android:paddingLeft="20dp"
            android:paddingRight="20dp" >

            <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="15dp"
                android:orientation="horizontal">

                <RadioButton android:id="@+id/radio_customer_order"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="15sp"
                    android:checked="true"
                    android:text="Customer Order"
                    android:padding ="10dp"
                    android:onClick="onRadioButtonClicked"
                    />
                <RadioButton
                    android:id="@+id/radio_rep_order"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="10dp"

                    android:textSize="15sp"
                    android:onClick="onRadioButtonClicked"
                    android:text="Rep Order" />




            </RadioGroup>

           <!-- <Spinner
                android:layout_marginTop="30dp"
                android:id="@+id/sporder"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@drawable/spinner_backgroud"/>-->

            <android.support.design.widget.TextInputLayout
                android:id="@+id/input_layout_merchant"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <AutoCompleteTextView
                    android:id="@+id/txtCellNumber"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_marginBottom="5dp"
                    android:completionThreshold="1"
                    android:hint="Enter Merchant"
                    android:padding="15dp"
                    android:textAppearance="@style/TextAppearance.AppCompat"
                    android:textColor="@color/input_register"
                    android:textColorHint="@color/input_register_hint"
                    android:textSize="19dp" />

            </android.support.design.widget.TextInputLayout>


            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="95dp"
                android:layout_marginTop="20dp"
                android:orientation="horizontal">


                <ImageView
                    android:id="@+id/btnVodacom"
                    android:layout_width="1dip"
                    android:layout_height="90dp"
                    android:layout_marginRight="1dp"
                    android:layout_weight="0.98"
                    android:background="@drawable/customer_button_border"
                    android:src="@drawable/vodacoms"
                    android:textColor="@color/white"

                    />

                <ImageView
                    android:id="@+id/btnMTN"
                    android:layout_width="1dip"
                    android:layout_height="90dp"
                    android:layout_marginRight="1dp"
                    android:layout_weight="0.98"
                    android:background="@drawable/customer_button_border"
                    android:src="@drawable/mtn"
                    android:textColor="@color/white"

                    />


                <ImageView
                    android:id="@+id/btnCellC"
                    android:layout_width="1dip"
                    android:layout_height="90dp"
                    android:layout_marginRight="1dp"
                    android:layout_weight="0.98"
                    android:background="@drawable/customer_button_border"
                    android:src="@drawable/cellc"
                    android:textColor="@color/white"

                    />

                <ImageView
                    android:id="@+id/btnTelkom"
                    android:layout_width="1dip"
                    android:layout_height="90dp"
                    android:layout_marginRight="1dp"
                    android:layout_weight="0.98"
                    android:background="@drawable/customer_button_border"
                    android:src="@drawable/telkom"
                    android:textColor="@color/white"

                    />
      </LinearLayout>
            <TextView
                android:layout_marginTop="20dp"
                android:id="@+id/txtNetwork"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:text="Select network"
                android:textAlignment="center"
                android:textColor="@color/white"
                android:textSize="15sp"
                android:background="@drawable/customborder"
                android:layout_weight="0.10" />

          <!--  <Spinner
                android:id="@+id/networkList"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="30dp"
                android:layout_marginBottom="5dp"
                android:background="@drawable/spinner_backgroud" /> -->



            <android.support.design.widget.TextInputLayout
                android:id="@+id/input_layout_topamounts"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <AutoCompleteTextView
                    android:id="@+id/txtProduct"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="15dp"
                    android:layout_marginBottom="5dp"
                    android:hint="Enter Product"

                    android:inputType="text"
                    android:padding="15dp"
                    android:completionThreshold="1"
                    android:textAppearance="@style/TextAppearance.AppCompat"
                    android:singleLine="true"
                    android:textColor="@color/input_register"
                    android:textColorHint="@color/input_register_hint" />
            </android.support.design.widget.TextInputLayout>

            <android.support.design.widget.TextInputLayout
                android:id="@+id/input_layout_quantity"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <EditText
                    android:id="@+id/txtQuantity"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="15dp"
                    android:layout_marginBottom="5dp"
                    android:hint="Quantity"
                    android:inputType="number"
                    android:padding="10dp"
                    android:singleLine="true"
                    android:textColor="@color/input_register"
                    android:textColorHint="@color/input_register_hint" />

            </android.support.design.widget.TextInputLayout>


            <Button
                android:id="@+id/btnsaveOrder"
                android:layout_width="150dp"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dip"
                android:background="@drawable/customborder"
                android:textStyle="bold"
                android:layout_gravity="center"
                android:text="Save"
                android:textColor="@color/white" />
            <!-- Login Button -->
            <android.support.v7.widget.RecyclerView
                android:paddingTop="20dp"
                android:id="@+id/my_recycler_view"
                android:scrollbars="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

            <Button
                android:id="@+id/btnOrder"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dip"
                android:background="@drawable/customborder"
                android:textStyle="bold"
                android:text="Place Order"
                android:textColor="@color/white" />

            <!-- Link to Login Screen -->

            <Button
                android:id="@+id/btnCancelTopup"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="40dip"
                android:background="@null"
                android:text="Cancel Order"
                android:textAllCaps="false"
                android:textColor="@color/app_color"
                android:textSize="15dp" />
        </LinearLayout>

    </LinearLayout>

</ScrollView>