|
@@ -0,0 +1,286 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/mainBackGroundColor"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_margin="8dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/typePatient"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/patientLeftRound"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_left_round">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ivPatient"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/ic_accessible_black_24dp" />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/patientRightRound"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_right_round2">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvPatient"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:text="@string/typePatient"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/typeWriter"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginLeft="24dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/writerLeftRound"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_left_round">
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ivWriter"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/ic_doctor" />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/writerRightRound"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_right_round2">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvWriter"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:text="@string/typeWriter"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginTop="5dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:text="@string/inquiryPeriod"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="8dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/leftDateLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="4dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_item"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_weight="1">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvLeftDate"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="center"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="2019/11/12"
|
|
|
+ android:textSize="16sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingHorizontal="5dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_right_round">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingHorizontal="3dp"
|
|
|
+ android:src="@drawable/date" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/rightDateLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="4dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_item"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_weight="1">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvRightDate"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="center"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="2019/11/12"
|
|
|
+ android:textSize="16sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingHorizontal="5dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="@drawable/shape_right_round">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingHorizontal="3dp"
|
|
|
+ android:src="@drawable/date" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnLookup"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:layout_margin="8dp"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginRight="4dp"
|
|
|
+ android:background="@drawable/shape_lookup"
|
|
|
+ android:text="@string/inquiry"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp"
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="8dp"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/checkAll"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/all"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/checkTemp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/temp"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/checkCert"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/cert"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/checkConfirm"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/confirm"
|
|
|
+ android:textSize="12sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="8dp">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/historyRecyclerView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:text="@string/emptyHistory"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+</LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|