<?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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.administrator.alphabot.Uart">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentBottom="true"
        android:layout_alignParentStart="true"
        android:orientation="vertical">

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="0px"
            android:stretchColumns="0"
            android:layout_gravity="bottom">
            <TableRow>
                <TextView
                    android:focusable="true"
                    android:focusableInTouchMode="true"
                    android:id="@+id/uart_textView_sendDataCount"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="16sp" />
                <TextView
                    android:focusable="true"
                    android:focusableInTouchMode="true"
                    android:id="@+id/uart_textView_receiveDataCount"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="16sp" />
            </TableRow>
        </TableLayout>

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1.0"
            android:background="#FFFFFFFF"
            android:id="@+id/uart_scrollView_receive">
            <TextView
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:id="@+id/uart_textView_receiveData"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:textSize="16sp"/>
        </ScrollView>

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="0px"
            android:stretchColumns="0"
            android:layout_gravity="bottom">
            <TableRow>
                <EditText
                    android:id="@+id/uart_editText_sendData"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:singleLine="true"
                    android:layout_span="4"
                    android:background="#FFDDDDDD"/>
                <Button android:id="@+id/uart_button_send"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:text="@string/send_button"
                    android:textColor="#ffffff"
                    android:background="#66ccff"
                    android:layout_gravity="bottom" />
            </TableRow>
        </TableLayout>

    </LinearLayout>
</RelativeLayout>
