Files
arrest-tb/app/src/main/res/layout/activity_spin__test.xml
developerraman d58fef2180 Added sharing and downloading button for previous results.
Date of birth format change from month-date-year to date-month-year
2021-05-23 02:47:03 +05:30

599 lines
23 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:background="@android:color/holo_blue_light"
android:layout_height="@android:dimen/app_icon_size"
android:orientation="vertical">
<ImageButton
android:layout_width="wrap_content"
android:layout_height="@android:dimen/app_icon_size"
android:id="@+id/share"
android:tint="@android:color/white"
android:layout_alignParentEnd="true"
android:backgroundTint="@android:color/transparent"
android:src="@android:drawable/ic_menu_share"
android:layout_alignParentRight="true" />
<ImageButton
android:id="@+id/downlaod"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginHorizontal="50dp"
android:backgroundTint="@android:color/transparent"
android:src="@android:drawable/stat_sys_download"
android:tint="@android:color/white" />
</RelativeLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center"
android:orientation="vertical">
<!-- <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Test Report"
android:textColor="#131313"
android:textSize="@dimen/heading_size"
android:textStyle="bold">
</TextView>
-->
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/circle_image"
android:layout_width="300dp"
android:layout_height="300dp"
app:civ_border_width="3dp"
android:src="@android:drawable/ic_menu_gallery"
/>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Date : "
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/dater"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Time : "
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/timer"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Patient ID : "
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_idr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Patient Gender :"
android:textSize="@dimen/small_text_size"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_genderr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Date of Birth :"
android:textSize="@dimen/small_text_size" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patien_dobr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Age :"
android:textSize="@dimen/small_text_size"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_ager"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Result :"
android:textSize="@dimen/small_text_size"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_resultr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="National ID :"
android:textSize="@dimen/small_text_size"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_nikshayidr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Lab Number :"
android:textSize="@dimen/small_text_size"
/>
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_nirtr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="SPIN Tube ID :"
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_spintuber"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Type of Sample :"
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_typesampler"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Tube Validity :"
android:textSize="@dimen/small_text_size"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="@dimen/small_text_size"
android:id="@+id/patient_tubevisibler"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
</TableLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
</LinearLayout>