diff --git a/app/src/main/java/com/terratenientes/medicalhealth/DoctorDataBaseHelper.kt b/app/src/main/java/com/terratenientes/medicalhealth/DoctorDataBaseHelper.kt
index 4665e85..2a17563 100644
--- a/app/src/main/java/com/terratenientes/medicalhealth/DoctorDataBaseHelper.kt
+++ b/app/src/main/java/com/terratenientes/medicalhealth/DoctorDataBaseHelper.kt
@@ -86,9 +86,8 @@ class DoctorDataBaseHelper (context: Context) : SQLiteOpenHelper(context, DATABA
put(COLUMN_EDAD, paciente.edad)
put(COLUMN_SEXO, paciente.sexo)
}
- val whereClause = "$COLUMN_NOMBRE_PACIENTE = ? and $COLUMN_APELLIDO_PATERNO_PACIENTE = ? and $COLUMN_APELLIDO_MATERNO_PACIENTE = ?"
- //val whereArgs = arrayOf(paciente.id.toString())
- val whereArgs = arrayOf(paciente.nombre, paciente.apellidoPaterno, paciente.apellidoMaterno)
+ val whereClause = "$COLUMN_ID_PACIENTE = ?"
+ val whereArgs = arrayOf(paciente.id.toString())
db.update(TABLE_PACIENTES, values, whereClause, whereArgs)
db.close()
}
diff --git a/app/src/main/res/drawable/radius_btn.xml b/app/src/main/res/drawable/radius_btn.xml
index dfaf77b..59b5312 100644
--- a/app/src/main/res/drawable/radius_btn.xml
+++ b/app/src/main/res/drawable/radius_btn.xml
@@ -1,5 +1,5 @@
-
-
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_agregar_paciente.xml b/app/src/main/res/layout/activity_agregar_paciente.xml
index d880bc1..94154ac 100644
--- a/app/src/main/res/layout/activity_agregar_paciente.xml
+++ b/app/src/main/res/layout/activity_agregar_paciente.xml
@@ -13,7 +13,7 @@
android:layout_marginTop="5dp"
android:textSize="32dp"
android:textStyle="bold"
- android:textColor="@color/tv_titulo"
+ android:textColor="@color/primaryColor"
android:text="@string/tv_agregar_paciente_titulo"
android:gravity="center"
/>
@@ -117,6 +117,9 @@
android:layout_marginStart="50dp"
android:layout_marginTop="25dp"
android:layout_marginEnd="50dp"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:background="@drawable/radius_btn"
android:text="@string/bt_agregar" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_consultar_pacientes.xml b/app/src/main/res/layout/activity_consultar_pacientes.xml
index 7fe0af7..263e0e5 100644
--- a/app/src/main/res/layout/activity_consultar_pacientes.xml
+++ b/app/src/main/res/layout/activity_consultar_pacientes.xml
@@ -13,7 +13,7 @@
android:layout_marginTop="20dp"
android:textSize="32dp"
android:textStyle="bold"
- android:textColor="@color/tv_titulo"
+ android:textColor="@color/primaryColor"
android:text="@string/tv_titulo_consultar"
android:gravity="center"
/>
diff --git a/app/src/main/res/layout/activity_eliminar_paciente.xml b/app/src/main/res/layout/activity_eliminar_paciente.xml
index af42305..1b0ccb3 100644
--- a/app/src/main/res/layout/activity_eliminar_paciente.xml
+++ b/app/src/main/res/layout/activity_eliminar_paciente.xml
@@ -13,7 +13,7 @@
android:layout_marginTop="20dp"
android:textSize="32dp"
android:textStyle="bold"
- android:textColor="@color/tv_titulo"
+ android:textColor="@color/primaryColor"
android:text="@string/eliminar_paciente_titulo"
android:gravity="center"
/>
@@ -34,6 +34,9 @@
android:layout_marginStart="50dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="50dp"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:background="@drawable/radius_btn"
android:text="@string/bt_eliminar" />
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index c0fd13a..307f5a4 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -14,7 +14,7 @@
android:layout_height="wrap_content"
android:text="@string/activity_iniciar_sesion_titulo"
android:textSize="40sp"
- android:textColor="@color/tv_titulo"
+ android:textColor="@color/primaryColor"
android:gravity="center_horizontal"
/>
@@ -27,7 +27,8 @@
android:layout_gravity="center_horizontal"
android:background="@drawable/radius_tv"
android:hint="@string/et_usuario"
- android:textColorHint="@color/tv_titulo"
+ android:textColor="#212121"
+ android:textColorHint="@color/primaryColor"
android:textSize="25sp" />
@@ -39,7 +40,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/et_contrasena"
- android:textColorHint="@color/tv_titulo"
+ android:textColorHint="@color/primaryColor"
+ android:textColor="#212121"
android:textSize="25sp"
android:paddingStart="10dp"
android:ems="10"
@@ -52,9 +54,11 @@
android:layout_width="250dp"
android:layout_height="wrap_content"
android:text="@string/btn_iniciar_sesion"
+ android:textSize="18sp"
+ android:textStyle="bold"
android:layout_gravity="center_horizontal"
android:background="@drawable/radius_btn"
- android:backgroundTint="@color/tv_titulo"
+ android:backgroundTint="@color/primaryColor"
/>
@@ -97,8 +97,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bt_modificar"
+ android:textSize="18sp"
+ android:textStyle="bold"
android:layout_marginTop="70dp"
android:layout_marginStart="50dp"
+ android:background="@drawable/radius_btn"
android:layout_marginEnd="50dp"/>
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 6e986c9..5629f02 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -2,5 +2,5 @@
#FF000000
#FFFFFFFF
- #FF303E9F
+ #FF303E9F
\ No newline at end of file
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 4dfea4a..ab56364 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -5,5 +5,7 @@
-
+
\ No newline at end of file