XML de inicio se Sesión
This commit is contained in:
parent
40df86b20f
commit
46f5fc3ab6
|
@ -1,9 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<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="modules">
|
||||
<set>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
|
|
|
@ -44,6 +44,7 @@ dependencies {
|
|||
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||
implementation("com.google.android.material:material:1.11.0")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation("androidx.activity:activity:1.8.0")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
xmlns:tools="http://schemas.android.com/tools" >
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
@ -11,13 +11,16 @@
|
|||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MedicalHealth"
|
||||
tools:targetApi="31">
|
||||
tools:targetApi="31" >
|
||||
<activity
|
||||
android:name=".IniciarSesionActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".ModificarActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true">
|
||||
android:exported="true" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -1,18 +1,69 @@
|
|||
<?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:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="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: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
|
||||
android:layout_marginTop="25dp"
|
||||
android:id="@+id/tv_registrarme"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
android:text="@string/txt_registrarme"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textSize="15sp"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
|
@ -9,4 +9,11 @@
|
|||
<string name="ht_apellido_materno">Apellido Materno</string>
|
||||
<string name="ht_domicilio">Domicilio</string>
|
||||
<string name="bt_modificar">Modificar</string>
|
||||
<!--Activity Main -> Iniciar Sesión-->
|
||||
<string name="activity_iniciar_sesion_titulo">Iniciar Sesión</string>
|
||||
<string name="et_usuario">Usuario</string>
|
||||
<string name="et_contrasena">Contraseña</string>
|
||||
<string name="txt_registrarme">Registrarme</string>
|
||||
<string name="btn_iniciar_sesion">Iniciar Sesión</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue