You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
7.6KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.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:id="@+id/constr_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_marginStart="8dp"
  13. android:layout_marginEnd="8dp"
  14. android:layout_marginBottom="8dp"
  15. android:orientation="vertical"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintTop_toTopOf="parent">
  20. <View
  21. android:id="@+id/divider3"
  22. android:layout_width="match_parent"
  23. android:layout_height="1dp"
  24. android:background="?android:attr/listDivider" />
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="vertical"
  29. android:paddingTop="8dp"
  30. android:paddingBottom="8dp">
  31. <TextView
  32. android:id="@+id/textView4"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:text="Track length" />
  36. <SeekBar
  37. android:id="@+id/seekBar3"
  38. style="@style/Widget.AppCompat.SeekBar.Discrete"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:max="10"
  42. android:progress="3" />
  43. <TextView
  44. android:id="@+id/textView3"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:text="Number of vehicles" />
  48. <SeekBar
  49. android:id="@+id/seekBar2"
  50. style="@style/Widget.AppCompat.SeekBar.Discrete"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:max="10"
  54. android:progress="3" />
  55. <TextView
  56. android:id="@+id/textView5"
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:text="Maximum velocity" />
  60. <SeekBar
  61. android:id="@+id/seekBar4"
  62. style="@style/Widget.AppCompat.SeekBar.Discrete"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:max="10"
  66. android:progress="3" />
  67. <TextView
  68. android:id="@+id/textView6"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:text="Brake probability" />
  72. <SeekBar
  73. android:id="@+id/seekBar5"
  74. style="@style/Widget.AppCompat.SeekBar.Discrete"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:max="10"
  78. android:progress="3" />
  79. </LinearLayout>
  80. <View
  81. android:id="@+id/divider"
  82. android:layout_width="match_parent"
  83. android:layout_height="1dp"
  84. android:background="?android:attr/listDivider" />
  85. <TableLayout
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:paddingTop="8dp"
  89. android:paddingBottom="8dp">
  90. <TableRow
  91. android:layout_width="match_parent"
  92. android:layout_height="match_parent">
  93. <TextView
  94. android:id="@+id/textView2"
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:text="Average velocity (overall):" />
  98. <TextView
  99. android:id="@+id/textView7"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:text="TextView" />
  103. </TableRow>
  104. <TableRow
  105. android:layout_width="match_parent"
  106. android:layout_height="match_parent">
  107. <TextView
  108. android:id="@+id/textView"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:text="Average velocity (last step):" />
  112. <TextView
  113. android:id="@+id/textView8"
  114. android:layout_width="wrap_content"
  115. android:layout_height="wrap_content"
  116. android:text="TextView" />
  117. </TableRow>
  118. </TableLayout>
  119. <View
  120. android:id="@+id/divider2"
  121. android:layout_width="match_parent"
  122. android:layout_height="1dp"
  123. android:background="?android:attr/listDivider" />
  124. <androidx.constraintlayout.widget.ConstraintLayout
  125. android:layout_width="match_parent"
  126. android:layout_height="match_parent"
  127. android:paddingTop="8dp"
  128. android:paddingBottom="8dp">
  129. <LinearLayout
  130. android:id="@+id/trackViewStack"
  131. android:layout_width="match_parent"
  132. android:layout_height="0dp"
  133. android:orientation="vertical"
  134. app:layout_constraintBottom_toTopOf="@+id/linearLayout"
  135. app:layout_constraintTop_toTopOf="parent"
  136. tools:layout_editor_absoluteX="8dp">
  137. </LinearLayout>
  138. <LinearLayout
  139. android:id="@+id/linearLayout"
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:orientation="horizontal"
  143. android:paddingTop="8dp"
  144. app:layout_constraintBottom_toBottomOf="parent"
  145. app:layout_constraintEnd_toEndOf="parent"
  146. app:layout_constraintStart_toStartOf="@+id/playButton">
  147. <Button
  148. android:id="@+id/playButton"
  149. style="@style/Widget.AppCompat.Button.Borderless"
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:onClick="onPlayButtonClick"
  153. android:text="Play" />
  154. <Button
  155. android:id="@+id/stepButton"
  156. style="@style/Widget.AppCompat.Button.Borderless"
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:onClick="onStepButtonClick"
  160. android:text="Step" />
  161. <Button
  162. android:id="@+id/stopButton"
  163. style="@style/Widget.AppCompat.Button.Borderless"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:enabled="false"
  167. android:onClick="onStopButtonClick"
  168. android:text="Stop" />
  169. </LinearLayout>
  170. </androidx.constraintlayout.widget.ConstraintLayout>
  171. </LinearLayout>
  172. </androidx.constraintlayout.widget.ConstraintLayout>