<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@color/tv_white">
    <ScrollView android:layout_width="match_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1">
        <LinearLayout android:orientation="vertical"
                      android:layout_width="match_parent"
                      android:layout_height="0dp"
                      android:padding="8dp">
            <TextView android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/collection_activity"
                      android:textStyle="bold"
                      android:textSize="24sp"/>

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingBottom="8dp"
                    android:orientation="horizontal">
                <TextView android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="@string/label_agreement_number"
                          android:textColor="#666"
                          android:textSize="15sp"/>
                <TextView android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text=""
                          android:id="@+id/agreementNumber"
                          android:textColor="#666"
                          android:textSize="15sp"/>
            </LinearLayout>

            <HorizontalScrollView
                    android:id="@+id/horizontalScrollView1"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:fillViewport="true">
                <TableLayout
                        android:id="@+id/tableHeaders"
                        android:layout_width="match_parent"
                        android:layout_height="fill_parent"
                        android:stretchColumns="3">
                    <TableRow
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:background="@drawable/spinner_background"
                            android:gravity="center_vertical"
                            android:paddingBottom="8dp"
                            android:paddingTop="8dp">

                        <TextView
                                android:gravity="center_vertical"
                                android:paddingRight="6dp"
                                android:paddingLeft="6dp"
                                android:text="No"
                                android:textColor="@color/tv_white"
                                android:textSize="12sp"
                                android:textStyle="bold"/>

                        <TextView
                                android:gravity="center_vertical"
                                android:paddingLeft="6dp"
                                android:paddingRight="6dp"
                                android:text="@string/label_activity_date"
                                android:textColor="@color/tv_white"
                                android:textSize="12sp"
                                android:textStyle="bold"/>

                        <TextView
                                android:gravity="center_vertical"
                                android:paddingLeft="6dp"
                                android:paddingRight="6dp"
                                android:minWidth="70dp"
                                android:text="@string/label_action"
                                android:textColor="@color/tv_white"
                                android:textSize="12sp"
                                android:textStyle="bold"/>

                        <TextView
                                android:gravity="center_vertical"
                                android:paddingLeft="6dp"
                                android:paddingRight="6dp"
                                android:text="@string/label_collection_number"
                                android:textColor="@color/tv_white"
                                android:textSize="12sp"
                                android:textStyle="bold"/>
                    </TableRow>
                </TableLayout>

            </HorizontalScrollView>
        </LinearLayout>
    </ScrollView>
    <LinearLayout android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:layout_gravity="bottom">

        <ImageButton
            android:id="@+id/imageBtnDownload"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:background="@android:color/transparent"
            android:src="@drawable/ic_download" />
    </LinearLayout>
</LinearLayout>