Compare commits

...

3 Commits

Author SHA1 Message Date
sebastiancc27 1892d5d8f8 XML de inicio se Sesión 2024-04-20 15:12:58 -06:00
sebastiancc27 e72b9a70b0 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/res/values/strings.xml
2024-04-20 15:08:52 -06:00
sebastiancc27 46f5fc3ab6 XML de inicio se Sesión 2024-04-20 15:07:48 -06:00
6 changed files with 94 additions and 11 deletions

View File

@ -5,6 +5,7 @@
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="$PROJECT_DIR$/../../../../workspace/gradle-8.2" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" /> <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules"> <option name="modules">
<set> <set>

View File

@ -12,6 +12,9 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.MedicalHealth" android:theme="@style/Theme.MedicalHealth"
tools:targetApi="31" > tools:targetApi="31" >
<activity
android:name=".IniciarSesionActivity"
android:exported="false" />
<activity <activity
android:name=".EliminarActivity" android:name=".EliminarActivity"
android:exported="false" /> android:exported="false" />

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/tv_titulo"/>
<corners android:radius="30dp"/>
</shape>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dp" />
<solid android:color="#ffffff" />
<padding
android:left="1dp"
android:right="1dp"
android:bottom="1dp"
android:top="1dp" />
<corners android:radius="30dp" />
</shape>

View File

@ -1,18 +1,70 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity"> tools:context=".MainActivity"
android:orientation="vertical"
>
<TextView
android:layout_width="match_parent"
android:layout_marginTop="180dp"
android:layout_height="wrap_content"
android:text="@string/activity_iniciar_sesion_titulo"
android:textSize="40sp"
android:textColor="@color/tv_titulo"
android:gravity="center_horizontal"
/>
<EditText
android:id="@+id/tv_usuario"
android:paddingStart="10dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/radius_tv"
android:hint="@string/et_usuario"
android:textColorHint="@color/tv_titulo"
android:textSize="25sp" />
<EditText
android:id="@+id/tv_contrasena"
android:layout_marginTop="25dp"
android:background="@drawable/radius_tv"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/et_contrasena"
android:textColorHint="@color/tv_titulo"
android:textSize="25sp"
android:paddingStart="10dp"
/>
<Button
android:id="@+id/btn_iniciar_sesion"
android:layout_marginTop="25dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:text="@string/btn_iniciar_sesion"
android:layout_gravity="center_horizontal"
android:background="@drawable/radius_btn"
android:backgroundTint="@color/tv_titulo"
/>
<TextView <TextView
android:layout_marginTop="25dp"
android:id="@+id/tv_registrarme"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Hello World!" android:text="@string/txt_registrarme"
app:layout_constraintBottom_toBottomOf="parent" android:layout_gravity="center_horizontal"
app:layout_constraintEnd_toEndOf="parent" android:textSize="15sp"
app:layout_constraintStart_toStartOf="parent" />
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>

View File

@ -14,4 +14,12 @@
<string name="bt_cancelar">Cancelar</string> <string name="bt_cancelar">Cancelar</string>
<string name="eliminar_paciente_titulo">Elimina a un paciente</string> <string name="eliminar_paciente_titulo">Elimina a un paciente</string>
<string name="bt_eliminar">Confirmar</string> <string name="bt_eliminar">Confirmar</string>
<!--Main acitvity -> Iniciar sesion activity-->
<string name="activity_iniciar_sesion_titulo">Iniciar Sesion</string>
<string name="et_usuario">Usuario</string>
<string name="et_contrasena">Contraseña</string>
<string name="btn_iniciar_sesion">Iniciar Sesion</string>
<string name="txt_registrarme">Registrarme</string>
</resources> </resources>