Eliminación botones pruebas / Botones en la Pantalla Principal
This commit is contained in:
parent
9870433da3
commit
25f72e59f0
|
@ -29,16 +29,6 @@ class MainActivity : AppCompatActivity() {
|
||||||
Toast.makeText(this@MainActivity," NO VALIDADO",Toast.LENGTH_LONG).show()
|
Toast.makeText(this@MainActivity," NO VALIDADO",Toast.LENGTH_LONG).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.btnPrueba.setOnClickListener {
|
|
||||||
val intent = Intent(this@MainActivity, AgregarActivity::class.java)
|
|
||||||
startActivity(intent)
|
|
||||||
}
|
|
||||||
|
|
||||||
binding.btnPrueba2.setOnClickListener {
|
|
||||||
val intent = Intent(this@MainActivity, RecetaActivity::class.java)
|
|
||||||
startActivity(intent)
|
|
||||||
}
|
|
||||||
binding.tvRegistrarme.setOnClickListener{
|
binding.tvRegistrarme.setOnClickListener{
|
||||||
val intent = Intent(this@MainActivity, RegistrarDActivity::class.java)
|
val intent = Intent(this@MainActivity, RegistrarDActivity::class.java)
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
|
|
|
@ -1,11 +1,32 @@
|
||||||
package com.terratenientes.medicalhealth
|
package com.terratenientes.medicalhealth
|
||||||
|
|
||||||
|
import android.content.Intent
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import com.terratenientes.medicalhealth.databinding.ActivityPrincipalBinding
|
||||||
|
|
||||||
class PrincipalActivity : AppCompatActivity() {
|
class PrincipalActivity : AppCompatActivity() {
|
||||||
|
lateinit var binding : ActivityPrincipalBinding
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_principal)
|
binding = ActivityPrincipalBinding.inflate(layoutInflater)
|
||||||
|
val view = binding.root
|
||||||
|
setContentView(view)
|
||||||
|
|
||||||
|
binding.btnAgregarPaciente.setOnClickListener {
|
||||||
|
val intent = Intent(this@PrincipalActivity, AgregarActivity::class.java)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.btnEliminarPaciente.setOnClickListener {
|
||||||
|
val intent = Intent(this@PrincipalActivity, EliminarActivity::class.java)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.btnAgregarReceta.setOnClickListener {
|
||||||
|
val intent = Intent(this@PrincipalActivity, RecetaActivity::class.java)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -61,32 +61,6 @@
|
||||||
android:backgroundTint="@color/primaryColor"
|
android:backgroundTint="@color/primaryColor"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/btn_prueba"
|
|
||||||
android:layout_marginTop="25dp"
|
|
||||||
android:layout_width="250dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Prueba"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:background="@drawable/radius_btn"
|
|
||||||
android:backgroundTint="@color/primaryColor"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/btn_prueba2"
|
|
||||||
android:layout_marginTop="25dp"
|
|
||||||
android:layout_width="250dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Prueba2"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:background="@drawable/radius_btn"
|
|
||||||
android:backgroundTint="@color/primaryColor"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_marginTop="25dp"
|
android:layout_marginTop="25dp"
|
||||||
android:id="@+id/tv_registrarme"
|
android:id="@+id/tv_registrarme"
|
||||||
|
|
|
@ -1,9 +1,28 @@
|
||||||
<?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=".PrincipalActivity">
|
android:orientation="vertical"
|
||||||
|
tools:context="PrincipalActivity">
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<Button
|
||||||
|
android:id="@+id/btn_agregar_paciente"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/tv_agregar_paciente_titulo"/>
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_eliminar_paciente"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/eliminar_paciente_titulo"/>
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_agregar_receta"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/btn_agregar_receta"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
Loading…
Reference in New Issue