Newer
Older
Cactus-CleanArchitecture / app / src / main / res / layout / button_layout.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.  
  8. <Button
  9. android:id="@+id/top_button"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12.  
  13. android:layout_marginBottom="120dp"
  14. android:layout_marginLeft="33dp"
  15. android:layout_marginStart="33dp"
  16. android:text="うえ"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. app:layout_constraintStart_toStartOf="@+id/left_button" />
  19.  
  20. <TextView
  21. android:id="@+id/textView2"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_marginEnd="8dp"
  25. android:layout_marginLeft="8dp"
  26. android:layout_marginRight="8dp"
  27. android:layout_marginStart="8dp"
  28. android:layout_marginTop="68dp"
  29. android:text="Cactus"
  30. android:textColor="@android:color/background_light"
  31. android:textSize="30sp"
  32. app:layout_constraintEnd_toEndOf="parent"
  33. app:layout_constraintStart_toStartOf="parent"
  34. app:layout_constraintTop_toTopOf="parent" />
  35.  
  36. <Button
  37. android:id="@+id/down_button"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40.  
  41. android:layout_marginLeft="42dp"
  42. android:layout_marginStart="42dp"
  43. android:text="した"
  44. app:layout_constraintStart_toStartOf="@+id/left_button"
  45. app:layout_constraintTop_toBottomOf="@+id/left_button" />
  46.  
  47. <Button
  48. android:id="@+id/left_button"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51.  
  52. android:layout_marginLeft="28dp"
  53. android:layout_marginStart="28dp"
  54. android:text="ひだり"
  55. app:layout_constraintBaseline_toBaselineOf="@+id/right_button"
  56. app:layout_constraintStart_toStartOf="parent" />
  57.  
  58. <Button
  59. android:id="@+id/right_button"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62.  
  63. android:text="みぎ"
  64. app:layout_constraintStart_toEndOf="@+id/left_button"
  65. app:layout_constraintTop_toBottomOf="@+id/top_button" />
  66.  
  67. </android.support.constraint.ConstraintLayout>