principal.xml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. tools:context=".Principal">
  9.  
  10. <Button
  11. android:id="@+id/button1"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:text="Diálogo con una pregunta" />
  15.  
  16. <Button
  17. android:id="@+id/button2"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:text="Diálogo a medida" />
  21.  
  22. <TextView
  23. android:id="@+id/result"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:hint="Resultado" />
  27. </LinearLayout>

Proinf.net