From 975b52e739f2af28e48b0ac9eb32837b9d29aa21 Mon Sep 17 00:00:00 2001 From: AngelSuarez03 Date: Mon, 22 Apr 2024 07:46:40 -0600 Subject: [PATCH] Estilo botones --- .../medicalhealth/DoctorDataBaseHelper.kt | 5 ++--- app/src/main/res/drawable/radius_btn.xml | 4 ++-- .../res/layout/activity_agregar_paciente.xml | 8 +++++++- .../layout/activity_consultar_pacientes.xml | 2 +- .../res/layout/activity_eliminar_paciente.xml | 8 +++++++- app/src/main/res/layout/activity_main.xml | 20 +++++++++++++------ .../main/res/layout/activity_modificar.xml | 5 ++++- app/src/main/res/values/colors.xml | 2 +- app/src/main/res/values/themes.xml | 4 +++- 9 files changed, 41 insertions(+), 17 deletions(-) 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" />