dialogo.xml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout 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="300dp"
  7. tools:context=".Dialogo">
  8.  
  9. <TextView
  10. android:id="@+id/textView"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_marginBottom="8dp"
  14. android:layout_marginEnd="8dp"
  15. android:layout_marginStart="8dp"
  16. android:layout_marginTop="8dp"
  17. android:text="Texto de prueba"
  18. app:layout_constraintBottom_toBottomOf="parent"
  19. app:layout_constraintEnd_toEndOf="parent"
  20. app:layout_constraintStart_toStartOf="parent"
  21. app:layout_constraintTop_toTopOf="parent"
  22. app:layout_constraintVertical_bias="0.19" />
  23.  
  24. <Button
  25. android:id="@+id/cerrar"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_marginBottom="8dp"
  29. android:layout_marginEnd="8dp"
  30. android:layout_marginStart="8dp"
  31. android:layout_marginTop="8dp"
  32. android:text="@string/cerrar"
  33. app:layout_constraintBottom_toBottomOf="parent"
  34. app:layout_constraintEnd_toEndOf="parent"
  35. app:layout_constraintStart_toStartOf="parent"
  36. app:layout_constraintTop_toTopOf="parent"
  37. app:layout_constraintVertical_bias="0.9" />
  38. </android.support.constraint.ConstraintLayout>

Proinf.net