Advertisement
Orleon

Untitled

Dec 21st, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. <LinearLayout
  2. android:id="@+id/task"
  3. android:layout_width="match_parent"
  4. android:layout_height="500dp"
  5. android:orientation="vertical"
  6. app:layout_constraintLeft_toLeftOf="parent"
  7. app:layout_constraintRight_toRightOf="parent"
  8.  
  9. app:layout_constraintTop_toTopOf="parent">
  10.  
  11.  
  12. <ImageView
  13. android:id="@+id/taskImage"
  14. android:layout_width="match_parent"
  15. android:layout_height="340dp"
  16. android:layout_weight="1"
  17. app:layout_constraintLeft_toLeftOf="parent"
  18. app:layout_constraintRight_toRightOf="parent"
  19. app:layout_constraintTop_toTopOf="parent"
  20. tools:srcCompat="@drawable/moscow" />
  21.  
  22. <TextView
  23. android:id="@+id/taskText"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_weight="1"
  27. android:text="Какая достопримечательность не находится в Москве?"
  28. android:textAlignment="center"
  29. android:textSize="26sp"
  30. app:layout_constraintTop_toBottomOf="parent" />
  31. </LinearLayout>
  32.  
  33. <TableLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="180dp"
  36. app:layout_constraintLeft_toLeftOf="parent"
  37. app:layout_constraintRight_toRightOf="parent"
  38. app:layout_constraintTop_toBottomOf="@+id/task"
  39. >
  40.  
  41. <TableRow
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. >
  45.  
  46. <Button
  47. android:id="@+id/button1"
  48. android:layout_width="150dp"
  49. android:layout_height="70dp"
  50. android:onClick="btn1"
  51. android:text="1"
  52. android:layout_margin="10dp"
  53. />
  54.  
  55. <Button
  56. android:id="@+id/button2"
  57. android:layout_width="150dp"
  58. android:layout_height="70dp"
  59. android:onClick="btn2"
  60. android:text="2"
  61. android:layout_margin="10dp"
  62. />
  63. </TableRow>
  64.  
  65. <TableRow
  66. android:layout_width="match_parent"
  67. android:layout_height="match_parent" >
  68.  
  69. <Button
  70. android:id="@+id/button3"
  71. android:layout_width="150dp"
  72. android:layout_height="70dp"
  73. android:onClick="btn3"
  74. android:text="3"
  75. android:layout_margin="10dp"/>
  76.  
  77. <Button
  78. android:id="@+id/button4"
  79. android:layout_width="150dp"
  80. android:layout_height="70dp"
  81. android:onClick="btn4"
  82. android:text="4"
  83. android:layout_margin="10dp"/>
  84. </TableRow>
  85.  
  86. </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement