diff --git a/app/src/main/java/com/example/smox/caretaker/PatientList.kt b/app/src/main/java/com/example/smox/caretaker/PatientList.kt
index 675ab74..52529b6 100644
--- a/app/src/main/java/com/example/smox/caretaker/PatientList.kt
+++ b/app/src/main/java/com/example/smox/caretaker/PatientList.kt
@@ -132,4 +132,11 @@ class PatientList : AppCompatActivity() {
}
})
}
+
+ fun back(view: View) {
+ super.onBackPressed();
+ overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
+ val clickEffect = AnimationUtils.loadAnimation(this, R.anim.scale_up)
+ view.startAnimation(clickEffect)
+ }
}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/im_caretaker.png b/app/src/main/res/drawable/im_caretaker.png
index 93cce72..e338c82 100644
Binary files a/app/src/main/res/drawable/im_caretaker.png and b/app/src/main/res/drawable/im_caretaker.png differ
diff --git a/app/src/main/res/drawable/im_dosage.png b/app/src/main/res/drawable/im_dosage.png
index 757e3b8..c10b1e7 100644
Binary files a/app/src/main/res/drawable/im_dosage.png and b/app/src/main/res/drawable/im_dosage.png differ
diff --git a/app/src/main/res/drawable/im_history.png b/app/src/main/res/drawable/im_history.png
index 8f3a431..887ad71 100644
Binary files a/app/src/main/res/drawable/im_history.png and b/app/src/main/res/drawable/im_history.png differ
diff --git a/app/src/main/res/drawable/im_infromation.png b/app/src/main/res/drawable/im_infromation.png
deleted file mode 100644
index 73c59bc..0000000
Binary files a/app/src/main/res/drawable/im_infromation.png and /dev/null differ
diff --git a/app/src/main/res/drawable/im_patient.png b/app/src/main/res/drawable/im_patient.png
index c6d9d2d..e338c82 100644
Binary files a/app/src/main/res/drawable/im_patient.png and b/app/src/main/res/drawable/im_patient.png differ
diff --git a/app/src/main/res/drawable/im_schedule.png b/app/src/main/res/drawable/im_schedule.png
index c9c3c54..448cb8e 100644
Binary files a/app/src/main/res/drawable/im_schedule.png and b/app/src/main/res/drawable/im_schedule.png differ
diff --git a/app/src/main/res/drawable/rect_green.xml b/app/src/main/res/drawable/rect_green.xml
index 0ba1a62..752ea67 100644
--- a/app/src/main/res/drawable/rect_green.xml
+++ b/app/src/main/res/drawable/rect_green.xml
@@ -13,7 +13,7 @@
-
-
+
diff --git a/app/src/main/res/drawable/rect_green_10.xml b/app/src/main/res/drawable/rect_green_10.xml
index f643324..c1f0041 100644
--- a/app/src/main/res/drawable/rect_green_10.xml
+++ b/app/src/main/res/drawable/rect_green_10.xml
@@ -12,7 +12,7 @@
-
-
+
diff --git a/app/src/main/res/drawable/rect_white.xml b/app/src/main/res/drawable/rect_white.xml
index f1b0040..e489f64 100644
--- a/app/src/main/res/drawable/rect_white.xml
+++ b/app/src/main/res/drawable/rect_white.xml
@@ -5,7 +5,7 @@
-
+
@@ -13,7 +13,7 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/c_confirm_patient.xml b/app/src/main/res/layout/c_confirm_patient.xml
index 2ae78a7..9733971 100644
--- a/app/src/main/res/layout/c_confirm_patient.xml
+++ b/app/src/main/res/layout/c_confirm_patient.xml
@@ -2,7 +2,7 @@
+ android:background="@color/background">
@@ -32,7 +32,7 @@
android:alpha="0.9"
android:fontFamily="@font/opensans_italic"
android:gravity="center_horizontal"
- android:text="make sure the data below belongs to your patient"
+ android:text="Pastikan data dibawah ini sudah benar data pasien anda"
android:textAlignment="center"
android:textColor="@color/brown"
android:textSize="18dp">
@@ -45,11 +45,11 @@
android:layout_marginTop="135dp">
@@ -81,11 +81,11 @@
android:layout_marginTop="165dp">
@@ -116,7 +116,7 @@
android:layout_marginTop="195dp">
@@ -192,7 +192,7 @@
android:textSize="20dp"
android:text="Confirm"
android:fontFamily="@font/opensans"
- android:textColor="@color/brown"
+ android:textColor="@color/white"
android:alpha="0.8"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"/>
diff --git a/app/src/main/res/layout/c_connect.xml b/app/src/main/res/layout/c_connect.xml
index a273956..101916c 100644
--- a/app/src/main/res/layout/c_connect.xml
+++ b/app/src/main/res/layout/c_connect.xml
@@ -2,7 +2,7 @@
+ android:background="@color/background">
@@ -31,7 +31,7 @@
android:layout_marginTop="55dp"
android:alpha="0.9"
android:fontFamily="@font/opensans_italic"
- android:text="by entering the patient's username"
+ android:text="Pasien yang akan anda pantau"
android:textColor="@color/brown"
android:textAlignment="center"
android:textSize="18dp"
@@ -67,11 +67,11 @@
android:layout_height="match_parent"
android:background="@drawable/rect_stroke_bottom"
android:fontFamily="@font/opensans"
- android:hint="Enter patient's username"
+ android:hint="Masukkan username pasien"
android:paddingLeft="5dp"
android:textColor="@color/brown"
android:textColorHint="@color/green_dark"
- android:textSize="18dp">
+ android:textSize="16dp">
@@ -88,7 +88,7 @@
android:textSize="20dp"
android:text="Connect"
android:fontFamily="@font/opensans"
- android:textColor="@color/brown"
+ android:textColor="@color/white"
android:alpha="0.8"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"/>
diff --git a/app/src/main/res/layout/c_dosage.xml b/app/src/main/res/layout/c_dosage.xml
index 4bc00f8..1819572 100644
--- a/app/src/main/res/layout/c_dosage.xml
+++ b/app/src/main/res/layout/c_dosage.xml
@@ -3,35 +3,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
+ android:background="@color/background"
tools:context=".caretaker.Dosage">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
@@ -77,8 +82,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="50dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -91,7 +96,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="75dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -104,8 +109,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="130dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Instruction for use"
+ android:fontFamily="@font/opensans"
+ android:text="Aturan Konsumsi"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -118,7 +123,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="154dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -127,12 +132,12 @@
@@ -146,7 +151,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="60dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -159,11 +164,11 @@
android:layout_marginLeft="165dp"
android:layout_marginTop="160dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto_thin_italic"
+ android:fontFamily="@font/roboto_thin"
android:text="TABLET"
android:textColor="@color/brown"
android:textSize="24dp"
- android:textStyle="bold">
+ android:textStyle="">
@@ -186,7 +191,7 @@
android:layout_gravity="bottom|end"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
- android:backgroundTint="@color/green"
+ android:backgroundTint="@color/backgroud1"
android:src="@drawable/i_edit"
android:onClick="gotoSetTwo">
@@ -209,8 +214,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="50dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -222,8 +227,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="130dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Instruction for use"
+ android:fontFamily="@font/opensans"
+ android:text="Aturan Konsumsi"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -236,7 +241,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="75dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -250,7 +255,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="154dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -259,12 +264,12 @@
@@ -278,7 +283,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="60dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -291,7 +296,7 @@
android:layout_marginLeft="165dp"
android:layout_marginTop="160dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto_thin_italic"
+ android:fontFamily="@font/roboto_thin"
android:text="TABLET"
android:textColor="@color/brown"
android:textSize="24dp"
diff --git a/app/src/main/res/layout/c_homepage.xml b/app/src/main/res/layout/c_homepage.xml
index 049c587..abec6f4 100644
--- a/app/src/main/res/layout/c_homepage.xml
+++ b/app/src/main/res/layout/c_homepage.xml
@@ -4,323 +4,378 @@
tools:context=".caretaker.Homepage"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@drawable/background2">
+ android:background="@color/background">
+
-
-
-
-
+ android:id="@+id/welcome"
+ android:background="@color/backgroud1">
-
-
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ android:textStyle="bold"
+ android:id="@+id/sch1">
+
+ android:textSize="16dp"
+ android:textStyle="">
+
+
-
+
+
+
+
+
+
-
-
-
-
-
+ android:textSize="16dp"
+ android:textStyle="bold"
+ android:id="@+id/dsg1">
+
-
+ android:textSize="16dp"
+ android:textStyle="">
+
-
-
-
+ android:layout_height="100dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:layout_below="@id/dosagemenu"
+ android:background="@drawable/rect_white"
+ android:id="@+id/historymenu"
+ android:onClick="gotoHistory">
+
+
-
-
-
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="30dp">
+ android:textSize="16dp"
+ android:textStyle="bold"
+ android:id="@+id/hst1">
-
-
-
-
-
-
-
-
+
+
-
+ android:layout_height="100dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:layout_below="@id/historymenu"
+ android:background="@drawable/rect_white"
+ android:id="@+id/infromation"
+ android:onClick="gotoInformation"
+ android:visibility="visible">
-
-
+
+
+
+ android:textSize="16dp"
+ android:textStyle="bold"
+ android:id="@+id/pnt1">
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/c_menu.xml b/app/src/main/res/layout/c_menu.xml
index 7dc19e7..369808f 100644
--- a/app/src/main/res/layout/c_menu.xml
+++ b/app/src/main/res/layout/c_menu.xml
@@ -5,56 +5,60 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/white1">
+
+
+ android:layout_height="200dp"
+ android:background="@color/backgroud1"
+ android:padding="20dp">
+
+ android:textSize="18dp"
+ android:textStyle="" />
+ android:textSize="18dp"
+ android:textStyle="" />
+ android:textSize="18dp"
+ android:textStyle="" />
+
-
-
-
-
+
+
diff --git a/app/src/main/res/layout/c_patient.xml b/app/src/main/res/layout/c_patient.xml
index 03065fb..a933970 100644
--- a/app/src/main/res/layout/c_patient.xml
+++ b/app/src/main/res/layout/c_patient.xml
@@ -3,50 +3,47 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
+ android:background="@color/background"
tools:context=".caretaker.Patient">
-
-
-
-
-
-
-
-
-
-
+ android:id="@+id/up"
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
+
+
+
+
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:textSize="18dp" />
+ android:id="@+id/row2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row1"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:textSize="18dp" />
+ android:id="@+id/row3"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row2"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:textSize="18dp" />
+ android:id="@+id/row4"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row3"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:textSize="18dp" />
@@ -218,7 +215,7 @@
android:alpha="0.8"
android:fontFamily="@font/opensans"
android:text="Other Patients"
- android:textColor="@color/brown"
+ android:textColor="@color/white"
android:textSize="16dp" />
@@ -241,7 +238,7 @@
android:alpha="0.8"
android:fontFamily="@font/opensans"
android:text="Add new patient"
- android:textColor="@color/brown"
+ android:textColor="@color/white"
android:textSize="16dp" />
diff --git a/app/src/main/res/layout/c_patients_card.xml b/app/src/main/res/layout/c_patients_card.xml
index a01d78a..799bafc 100644
--- a/app/src/main/res/layout/c_patients_card.xml
+++ b/app/src/main/res/layout/c_patients_card.xml
@@ -19,15 +19,15 @@
@@ -35,7 +35,7 @@
android:layout_width="10dp"
android:layout_height="wrap_content"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text=":"
android:textColor="@color/brown"
android:textSize="18dp" />
@@ -45,7 +45,7 @@
android:id="@+id/fullname"
android:layout_width="210dp"
android:layout_height="wrap_content"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:tag="fullname"
android:textColor="@color/green_dark"
android:textSize="18dp" />
@@ -54,16 +54,16 @@
@@ -71,7 +71,7 @@
android:layout_width="10dp"
android:layout_height="wrap_content"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text=":"
android:textColor="@color/brown"
android:textSize="18dp" />
@@ -80,7 +80,7 @@
android:id="@+id/birthday"
android:layout_width="210dp"
android:layout_height="wrap_content"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:tag="birthday"
android:textColor="@color/green_dark"
android:textSize="18dp" />
@@ -89,15 +89,15 @@
@@ -106,7 +106,7 @@
android:layout_width="10dp"
android:layout_height="wrap_content"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text=":"
android:textColor="@color/brown"
android:textSize="18dp" />
@@ -115,7 +115,7 @@
android:id="@+id/email"
android:layout_width="210dp"
android:layout_height="wrap_content"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:tag="email"
android:textColor="@color/green_dark"
android:textSize="18dp" />
@@ -124,16 +124,16 @@
@@ -141,7 +141,7 @@
android:layout_width="10dp"
android:layout_height="wrap_content"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text=":"
android:textColor="@color/brown"
android:textSize="18dp" />
@@ -150,7 +150,7 @@
android:id="@+id/phoneNumber"
android:layout_width="210dp"
android:layout_height="wrap_content"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:tag="phoneNumber"
android:textColor="@color/green_dark"
android:textSize="18dp" />
diff --git a/app/src/main/res/layout/c_patients_list.xml b/app/src/main/res/layout/c_patients_list.xml
index 6111503..b9421a2 100644
--- a/app/src/main/res/layout/c_patients_list.xml
+++ b/app/src/main/res/layout/c_patients_list.xml
@@ -3,35 +3,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
+ android:background="@color/background"
tools:context=".caretaker.PatientList">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
diff --git a/app/src/main/res/layout/c_schedule.xml b/app/src/main/res/layout/c_schedule.xml
index 1745923..1d8d52a 100644
--- a/app/src/main/res/layout/c_schedule.xml
+++ b/app/src/main/res/layout/c_schedule.xml
@@ -3,35 +3,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
+ android:background="@color/background"
tools:context=".caretaker.Schedule">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
@@ -78,8 +83,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="40dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -92,7 +97,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="65dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -105,8 +110,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="110dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -119,7 +124,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="130dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -133,7 +138,7 @@
android:layout_marginTop="160dp"
android:alpha="0.9"
android:fontFamily="@font/roboto_thin_italic"
- android:text="*This term can change according to the patient's condition"
+ android:text="*Dapat berubah-ubah disesuaikan dengan kondisi pasien"
android:textColor="@color/brown"
android:textSize="11dp"
android:textStyle="">
@@ -142,12 +147,12 @@
@@ -161,7 +166,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="70dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -170,15 +175,15 @@
+ android:textStyle="">
@@ -200,7 +205,7 @@
android:layout_gravity="bottom|end"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
- android:backgroundTint="@color/green"
+ android:backgroundTint="@color/backgroud1"
android:src="@drawable/i_edit"
android:onClick="gotoSetTwo">
@@ -223,8 +228,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="40dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -237,7 +242,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="65dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -250,8 +255,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="110dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -278,7 +283,7 @@
android:layout_marginTop="160dp"
android:alpha="0.9"
android:fontFamily="@font/roboto_thin_italic"
- android:text="*This term can change according to the patient's condition"
+ android:text="*Dapat berubah-ubah disesuaikan dengan kondisi pasien"
android:textColor="@color/brown"
android:textSize="11dp"
android:textStyle="">
@@ -287,12 +292,12 @@
@@ -306,7 +311,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="70dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -315,12 +320,12 @@
diff --git a/app/src/main/res/layout/c_set.xml b/app/src/main/res/layout/c_set.xml
index 5104fb2..26299d5 100644
--- a/app/src/main/res/layout/c_set.xml
+++ b/app/src/main/res/layout/c_set.xml
@@ -2,81 +2,64 @@
+ android:background="@color/background">
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
+
+
+
-
-
+
-
-
-
-
-
-
@@ -85,23 +68,22 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
- android:layout_marginTop="50dp"
- android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:layout_marginTop="60dp"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -111,23 +93,22 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
- android:layout_marginTop="120dp"
- android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Interval"
+ android:layout_marginTop="130dp"
+ android:fontFamily="@font/opensans"
+ android:text="Rentang jadwal"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -152,23 +132,22 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
- android:layout_marginTop="190dp"
+ android:layout_marginTop="200dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Dosage"
+ android:fontFamily="@font/opensans"
+ android:text="Dosis"
android:textColor="@color/green_dark"
- android:textSize="14dp">
-
+ android:textSize="14dp">
@@ -219,9 +197,9 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
- android:layout_marginTop="330dp"
+ android:layout_marginTop="340dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="Start Time"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -229,13 +207,13 @@
@@ -245,9 +223,8 @@
android:layout_width="110dp"
android:layout_height="35dp"
android:layout_alignParentRight="true"
- android:layout_marginEnd="60dp"
- android:layout_marginRight="60dp"
- android:layout_marginTop="353dp"
+ android:layout_marginEnd="20dp"
+ android:layout_marginTop="363dp"
android:background="@drawable/rect_green"
android:onClick="getTime">
@@ -267,23 +244,23 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
- android:layout_marginTop="400dp"
+ android:layout_marginTop="410dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp">
+ android:layout_marginTop="425dp"
+ android:layout_marginEnd="20dp">
+
+
+
+
diff --git a/app/src/main/res/layout/confirm.xml b/app/src/main/res/layout/confirm.xml
index 129a335..9eb3c45 100644
--- a/app/src/main/res/layout/confirm.xml
+++ b/app/src/main/res/layout/confirm.xml
@@ -3,105 +3,104 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@drawable/background1"
+ android:background="@color/background"
tools:context=".ConfirmRole">
+
+
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/dropdown_list.xml b/app/src/main/res/layout/dropdown_list.xml
index 807e2b8..dc4df61 100644
--- a/app/src/main/res/layout/dropdown_list.xml
+++ b/app/src/main/res/layout/dropdown_list.xml
@@ -2,7 +2,7 @@
android:id="@+id/textView"
android:layout_width="200dp"
android:layout_height="wrap_content"
- android:text="TextView"
+ android:text="Hari"
android:padding="15sp"
android:textColor="@color/brown"
android:textSize="14sp"
diff --git a/app/src/main/res/layout/history.xml b/app/src/main/res/layout/history.xml
index 4d9ccae..6bc9e79 100644
--- a/app/src/main/res/layout/history.xml
+++ b/app/src/main/res/layout/history.xml
@@ -3,34 +3,39 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
- android:background="@drawable/background3">
+ android:background="@color/background">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
@@ -38,7 +38,7 @@
android:layout_centerHorizontal="true"
android:layout_marginTop="70dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="Your Achievement"
android:textColor="@color/brown"
android:textSize="18dp"
@@ -59,7 +59,7 @@
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="14"
android:textColor="@color/brown"
android:textSize="80dp" />
diff --git a/app/src/main/res/layout/history_fragment1.xml b/app/src/main/res/layout/history_fragment1.xml
index 5260ee4..72e6f76 100644
--- a/app/src/main/res/layout/history_fragment1.xml
+++ b/app/src/main/res/layout/history_fragment1.xml
@@ -18,8 +18,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -31,7 +31,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="45dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:tag="name1"
android:text="-"
android:textColor="@color/brown"
@@ -47,8 +47,8 @@
android:layout_marginTop="20dp"
android:textAlignment="textEnd"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp"
android:gravity="end">
@@ -62,7 +62,7 @@
android:layout_marginEnd="20dp"
android:layout_marginRight="20dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:gravity="end"
android:tag="period1"
android:text="-"
@@ -73,11 +73,11 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/history_fragment2.xml b/app/src/main/res/layout/history_fragment2.xml
index a033a4d..46783c5 100644
--- a/app/src/main/res/layout/history_fragment2.xml
+++ b/app/src/main/res/layout/history_fragment2.xml
@@ -19,7 +19,7 @@
android:layout_marginTop="20dp"
android:alpha="0.9"
android:fontFamily="@font/roboto"
- android:text="The Medicine"
+ android:text="Nama Obat"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -48,7 +48,7 @@
android:textAlignment="textEnd"
android:alpha="0.9"
android:fontFamily="@font/roboto"
- android:text="Period"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp"
android:gravity="end">
@@ -73,11 +73,11 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/p_caretaker.xml b/app/src/main/res/layout/p_caretaker.xml
index b5badf1..33920d5 100644
--- a/app/src/main/res/layout/p_caretaker.xml
+++ b/app/src/main/res/layout/p_caretaker.xml
@@ -2,49 +2,48 @@
+ xmlns:tools="http://schemas.android.com/tools"
+ android:background="@color/background"
+ tools:context=".caretaker.Patient">
-
-
-
-
-
-
-
-
-
+ android:id="@+id/up"
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
+
+
+
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:id="@+id/row2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row1"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:id="@+id/row3"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row2"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+ android:id="@+id/row4"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/row3"
+ android:layout_centerHorizontal="true">
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
-
+ android:textSize="18dp" />
+
diff --git a/app/src/main/res/layout/p_dosage.xml b/app/src/main/res/layout/p_dosage.xml
index 22d491c..f3ebfcf 100644
--- a/app/src/main/res/layout/p_dosage.xml
+++ b/app/src/main/res/layout/p_dosage.xml
@@ -3,35 +3,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
- tools:context=".patient.Dosage">
+ android:background="@color/background"
+ tools:context=".caretaker.Dosage">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
+
@@ -76,26 +82,12 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="75dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
android:textStyle="bold">
-
-
-
@@ -117,7 +109,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="154dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -126,12 +118,12 @@
@@ -145,7 +137,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="60dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -158,11 +150,11 @@
android:layout_marginLeft="165dp"
android:layout_marginTop="160dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto_thin_italic"
+ android:fontFamily="@font/roboto_thin"
android:text="TABLET"
android:textColor="@color/brown"
android:textSize="24dp"
- android:textStyle="bold">
+ android:textStyle="">
@@ -176,6 +168,7 @@
android:layout_marginTop="25dp"
android:background="@drawable/rect_white">
+
+
+ android:fontFamily="@font/opensans"
+ android:text="Aturan Konsumsi"
+ android:textColor="@color/green_dark"
+ android:textSize="14dp">
+
-
+ android:fontFamily="@font/opensans"
+ android:text="-"
+ android:textColor="@color/brown"
+ android:textSize="14dp"
+ android:textStyle="bold">
@@ -261,7 +255,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="60dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -274,7 +268,7 @@
android:layout_marginLeft="165dp"
android:layout_marginTop="160dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto_thin_italic"
+ android:fontFamily="@font/roboto_thin"
android:text="TABLET"
android:textColor="@color/brown"
android:textSize="24dp"
@@ -284,6 +278,4 @@
-
-
diff --git a/app/src/main/res/layout/p_homepage.xml b/app/src/main/res/layout/p_homepage.xml
index 796244e..c79e1fb 100644
--- a/app/src/main/res/layout/p_homepage.xml
+++ b/app/src/main/res/layout/p_homepage.xml
@@ -1,320 +1,381 @@
+ android:background="@color/background">
+
+
-
-
+ android:id="@+id/welcome"
+ android:background="@color/backgroud1">
-
-
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ android:textStyle=""
+ android:id="@+id/sch1">
+
+ android:textSize="16dp"
+ android:textStyle="">
+
+
-
+
+
+
+
+
+
-
-
-
-
-
+ android:textSize="16dp"
+ android:textStyle=""
+ android:id="@+id/dsg1">
+
-
+ android:textSize="16dp"
+ android:textStyle="">
+
-
-
+ android:layout_height="100dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:layout_below="@id/dosagemenu"
+ android:background="@drawable/rect_white"
+ android:id="@+id/historymenu"
+ android:onClick="gotoHistory">
+
+
-
-
-
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="30dp">
+ android:textStyle=""
+ android:id="@+id/hst1">
-
-
-
-
-
-
-
+
-
-
+ android:layout_height="100dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:layout_below="@id/historymenu"
+ android:background="@drawable/rect_white"
+ android:id="@+id/infromation"
+ android:onClick="gotoInformation"
+ android:visibility="visible">
-
-
+
+
+
+ android:textStyle=""
+ android:id="@+id/pnt1">
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/p_menu.xml b/app/src/main/res/layout/p_menu.xml
index 3f654de..eeb004b 100644
--- a/app/src/main/res/layout/p_menu.xml
+++ b/app/src/main/res/layout/p_menu.xml
@@ -5,68 +5,71 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/white1">
+
+
+ android:layout_width="match_parent"
+ android:layout_height="225dp"
+ android:background="@color/backgroud1"
+ android:padding="20dp">
+
-
+ android:layout_marginTop="15dp"
+ android:fontFamily="@font/opensans"
+ android:text="Nama Lengkap"
+ android:textColor="@color/white"
+ android:textSize="45dp"
+ android:textStyle="bold" />
+
+ android:fontFamily="@font/opensans"
+ android:textColor="@color/white"
+ android:textStyle="">
+
-
+ android:textSize="18dp"
+ android:textStyle="" />
+
-
+ android:textSize="18dp"
+ android:textStyle="" />
+
-
+ android:textSize="18dp"
+ android:textStyle="" />
+
@@ -74,12 +77,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/header"
- android:layout_alignParentBottom="true">
+ android:layout_alignParentBottom="true"
+ android:padding="10dp">
@@ -95,40 +97,30 @@
android:text="Logout"
android:layout_marginLeft="10dp"
android:textSize="18dp"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:textColor="@color/brown">
-
-
-
-
-
+
+
+
diff --git a/app/src/main/res/layout/p_schedule.xml b/app/src/main/res/layout/p_schedule.xml
index 1c9852f..442e2c2 100644
--- a/app/src/main/res/layout/p_schedule.xml
+++ b/app/src/main/res/layout/p_schedule.xml
@@ -3,35 +3,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
- android:background="@drawable/background3"
- tools:context=".patient.Schedule">
+ android:background="@color/background"
+ tools:context=".caretaker.Schedule">
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:background="@color/backgroud1">
+
+
+
+
-
-
+
+
+
+
@@ -76,7 +82,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="65dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -89,8 +95,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="110dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -103,7 +109,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="130dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -117,7 +123,7 @@
android:layout_marginTop="160dp"
android:alpha="0.9"
android:fontFamily="@font/roboto_thin_italic"
- android:text="*This term can change according to the patient's condition"
+ android:text="*Dapat berubah-ubah disesuaikan dengan kondisi pasien"
android:textColor="@color/brown"
android:textSize="11dp"
android:textStyle="">
@@ -126,12 +132,12 @@
@@ -145,7 +151,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="70dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -154,18 +160,17 @@
+ android:textStyle="">
-
+
@@ -206,7 +212,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="65dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textColor="@color/brown"
android:textSize="14dp"
@@ -219,8 +225,8 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="110dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
- android:text="Period"
+ android:fontFamily="@font/opensans"
+ android:text="Target"
android:textColor="@color/green_dark"
android:textSize="14dp">
@@ -247,7 +253,7 @@
android:layout_marginTop="160dp"
android:alpha="0.9"
android:fontFamily="@font/roboto_thin_italic"
- android:text="*This term can change according to the patient's condition"
+ android:text="*Dapat berubah-ubah disesuaikan dengan kondisi pasien"
android:textColor="@color/brown"
android:textSize="11dp"
android:textStyle="">
@@ -256,12 +262,12 @@
@@ -275,7 +281,7 @@
android:layout_marginLeft="160dp"
android:layout_marginTop="70dp"
android:alpha="0.9"
- android:fontFamily="@font/roboto"
+ android:fontFamily="@font/opensans"
android:text="-"
android:textAlignment="center"
android:textColor="@color/brown"
@@ -284,19 +290,17 @@
-
-
-
+
diff --git a/app/src/main/res/layout/p_username.xml b/app/src/main/res/layout/p_username.xml
index c02210f..bdfd85f 100644
--- a/app/src/main/res/layout/p_username.xml
+++ b/app/src/main/res/layout/p_username.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@drawable/background4"
+ android:background="@color/background"
tools:context=".patient.CreateUsername">
@@ -57,7 +57,7 @@
android:layout_height="match_parent"
android:background="@drawable/rect_stroke_bottom"
android:fontFamily="@font/opensans"
- android:hint="Enter your username"
+ android:hint="Masukkan username"
android:paddingLeft="5dp"
android:textColor="@color/brown"
android:textColorHint="@color/green_dark"
@@ -73,7 +73,7 @@
android:alpha="0.9"
android:fontFamily="@font/opensans_italic"
android:gravity="center_horizontal"
- android:text="This username will be used when the caretaker connects his account with your account"
+ android:text="*Username ini akan digunakan oleh Carteker untuk menghubungkan akun kepada akun anda"
android:textAlignment="center"
android:textColor="@color/brown"
android:textSize="16dp">
@@ -95,7 +95,7 @@
android:alpha="0.8"
android:fontFamily="@font/opensans"
android:text="Set"
- android:textColor="@color/brown"
+ android:textColor="@color/white"
android:textSize="20dp" />
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 259184d..969e296 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -18,5 +18,7 @@
#F2EDD7
#C9D3D3
#C0C0C0
+ #F8F8F8
+ #8EC298
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7aa09ae..d80cf18 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,10 +1,10 @@
SMOX
- - Days
- - Weeks
- - Months
- - Years
+ - Hari
S
+ - Minggu
+ - Bulan
+ - Tahun
Period
Open