activity_main.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="match_parent"
  7. tools:context=".MainActivity">
  8.  
  9. <Button
  10. android:id="@+id/button"
  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:onClick="alHacerClic"
  18. android:text="Poco hecha"
  19. app:layout_constraintBottom_toBottomOf="parent"
  20. app:layout_constraintEnd_toEndOf="parent"
  21. app:layout_constraintHorizontal_bias="0.25"
  22. app:layout_constraintStart_toStartOf="parent"
  23. app:layout_constraintTop_toTopOf="parent"
  24. app:layout_constraintVertical_bias="0.25" />
  25.  
  26. <Button
  27. android:id="@+id/button2"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_marginBottom="8dp"
  31. android:layout_marginEnd="8dp"
  32. android:layout_marginStart="8dp"
  33. android:layout_marginTop="8dp"
  34. android:onClick="alHacerClic"
  35. android:text="En su punto"
  36. app:layout_constraintBottom_toBottomOf="parent"
  37. app:layout_constraintEnd_toEndOf="parent"
  38. app:layout_constraintStart_toStartOf="parent"
  39. app:layout_constraintTop_toTopOf="parent" />
  40.  
  41. <Button
  42. android:id="@+id/button3"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_marginBottom="8dp"
  46. android:layout_marginEnd="8dp"
  47. android:layout_marginStart="8dp"
  48. android:layout_marginTop="8dp"
  49. android:onClick="alHacerClic"
  50. android:text="Muy hecha"
  51. app:layout_constraintBottom_toBottomOf="parent"
  52. app:layout_constraintEnd_toEndOf="parent"
  53. app:layout_constraintHorizontal_bias="0.75"
  54. app:layout_constraintStart_toStartOf="parent"
  55. app:layout_constraintTop_toTopOf="parent"
  56. app:layout_constraintVertical_bias="0.75" />
  57. </android.support.constraint.ConstraintLayout>

Proinf.net