From 40df86b20f4ed6a5c1b43470a178a2f1ef0fbedd Mon Sep 17 00:00:00 2001 From: AngelSuarez03 Date: Sat, 20 Apr 2024 12:49:09 -0600 Subject: [PATCH] Avance Actividad Modificar --- app/build.gradle.kts | 3 + app/src/main/AndroidManifest.xml | 3 + .../medicalhealth/ModificarActivity.kt | 15 ++++ app/src/main/res/drawable/image_area.xml | 9 ++ .../main/res/layout/activity_modificar.xml | 84 +++++++++++++++++++ app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/strings.xml | 9 ++ 7 files changed, 124 insertions(+) create mode 100644 app/src/main/java/com/terratenientes/medicalhealth/ModificarActivity.kt create mode 100644 app/src/main/res/drawable/image_area.xml create mode 100644 app/src/main/res/layout/activity_modificar.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 747d806..79138ae 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -33,6 +33,9 @@ android { kotlinOptions { jvmTarget = "1.8" } + viewBinding { + enable = true + } } dependencies { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 32f3d43..097b1d4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,9 @@ android:supportsRtl="true" android:theme="@style/Theme.MedicalHealth" tools:targetApi="31"> + diff --git a/app/src/main/java/com/terratenientes/medicalhealth/ModificarActivity.kt b/app/src/main/java/com/terratenientes/medicalhealth/ModificarActivity.kt new file mode 100644 index 0000000..74c5c76 --- /dev/null +++ b/app/src/main/java/com/terratenientes/medicalhealth/ModificarActivity.kt @@ -0,0 +1,15 @@ +package com.terratenientes.medicalhealth + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import com.terratenientes.medicalhealth.databinding.ActivityModificarBinding + +class ModificarActivity : AppCompatActivity() { + lateinit var binding : ActivityModificarBinding + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + binding = ActivityModificarBinding.inflate(layoutInflater) + val view = binding.root + setContentView(view) + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable/image_area.xml b/app/src/main/res/drawable/image_area.xml new file mode 100644 index 0000000..9243f1b --- /dev/null +++ b/app/src/main/res/drawable/image_area.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_modificar.xml b/app/src/main/res/layout/activity_modificar.xml new file mode 100644 index 0000000..72fe7bd --- /dev/null +++ b/app/src/main/res/layout/activity_modificar.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + +