activity_objects.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/drawer_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true">
  8. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9. xmlns:app="http://schemas.android.com/apk/res-auto"
  10. xmlns:tools="http://schemas.android.com/tools"
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. tools:context="de.tu_darmstadt.informatik.tk.olir.ObjectsActivity">
  14. <TableLayout
  15. android:layout_width="0dp"
  16. android:layout_height="0dp"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. app:layout_constraintEnd_toEndOf="parent"
  19. app:layout_constraintHorizontal_bias="0.0"
  20. app:layout_constraintStart_toStartOf="parent"
  21. app:layout_constraintTop_toTopOf="parent"
  22. app:layout_constraintVertical_bias="0.0">
  23. <TableRow
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:gravity="left|center_vertical"
  27. android:minHeight="50dp"
  28. android:onClick="openAcceleration"
  29. android:padding="10dp">
  30. <ImageView
  31. android:id="@+id/imageView3"
  32. android:layout_width="40dp"
  33. android:layout_height="40dp"
  34. android:src="@mipmap/acceleration" />
  35. <TextView
  36. android:id="@+id/textView3"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:paddingLeft="5dp"
  40. android:text="Acceleration"
  41. android:textSize="20sp" />
  42. </TableRow>
  43. <TableRow
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content" >
  46. <View
  47. android:id="@+id/line0"
  48. android:layout_width="match_parent"
  49. android:layout_height="1dip"
  50. android:layout_weight="1"
  51. android:background="#FF909090"
  52. android:padding="2dip" />
  53. </TableRow>
  54. <TableRow
  55. android:layout_width="match_parent"
  56. android:layout_height="50dp"
  57. android:gravity="left|center_vertical"
  58. android:minHeight="50dp"
  59. android:onClick="openLoad"
  60. android:padding="10dp">
  61. <ImageView
  62. android:id="@+id/imageView"
  63. android:layout_width="40dp"
  64. android:layout_height="40dp"
  65. android:src="@mipmap/weight" />
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:paddingLeft="5dp"
  70. android:text="Load"
  71. android:textSize="20sp" />
  72. </TableRow>
  73. <TableRow
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content" >
  76. <View
  77. android:id="@+id/line1"
  78. android:layout_width="match_parent"
  79. android:layout_height="1dip"
  80. android:layout_weight="1"
  81. android:background="#FF909090"
  82. android:padding="2dip" />
  83. </TableRow>
  84. <TableRow
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:gravity="left|center_vertical"
  88. android:minHeight="50dp"
  89. android:onClick="openTempRising"
  90. android:padding="10dp">
  91. <ImageView
  92. android:id="@+id/imageView6"
  93. android:layout_width="40dp"
  94. android:layout_height="40dp"
  95. android:src="@mipmap/temperature" />
  96. <TextView
  97. android:id="@+id/textView6"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:paddingLeft="5dp"
  101. android:text="Rising Temperature"
  102. android:textSize="20sp" />
  103. </TableRow>
  104. <TableRow
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content" >
  107. <View
  108. android:id="@+id/line2"
  109. android:layout_width="match_parent"
  110. android:layout_height="1dip"
  111. android:layout_weight="1"
  112. android:background="#FF909090"
  113. android:padding="2dip" />
  114. </TableRow>
  115. <TableRow
  116. android:layout_width="match_parent"
  117. android:layout_height="match_parent"
  118. android:gravity="left|center_vertical"
  119. android:minHeight="50dp"
  120. android:onClick="openTempFalling"
  121. android:padding="10dp">
  122. <ImageView
  123. android:id="@+id/imageView7"
  124. android:layout_width="40dp"
  125. android:layout_height="40dp"
  126. android:src="@mipmap/temperature" />
  127. <TextView
  128. android:id="@+id/textView7"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:paddingLeft="5dp"
  132. android:text="Falling Temperature"
  133. android:textSize="20sp" />
  134. </TableRow>
  135. <TableRow
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content" >
  138. <View
  139. android:id="@+id/line3"
  140. android:layout_width="match_parent"
  141. android:layout_height="1dip"
  142. android:layout_weight="1"
  143. android:background="#FF909090"
  144. android:padding="2dip" />
  145. </TableRow>
  146. <TableRow
  147. android:layout_width="match_parent"
  148. android:layout_height="match_parent"
  149. android:gravity="left|center_vertical"
  150. android:minHeight="50dp"
  151. android:onClick="openTilt90"
  152. android:padding="10dp">
  153. <ImageView
  154. android:id="@+id/imageView4"
  155. android:layout_width="40dp"
  156. android:layout_height="40dp"
  157. android:src="@mipmap/rotation" />
  158. <TextView
  159. android:id="@+id/textView4"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:paddingLeft="5dp"
  163. android:text="Tilting (90°)"
  164. android:textSize="20sp" />
  165. </TableRow>
  166. <TableRow
  167. android:layout_width="match_parent"
  168. android:layout_height="wrap_content" >
  169. <View
  170. android:id="@+id/line4"
  171. android:layout_width="match_parent"
  172. android:layout_height="1dip"
  173. android:layout_weight="1"
  174. android:background="#FF909090"
  175. android:padding="2dip" />
  176. </TableRow>
  177. <TableRow
  178. android:layout_width="match_parent"
  179. android:layout_height="match_parent"
  180. android:gravity="left|center_vertical"
  181. android:minHeight="50dp"
  182. android:onClick="openTilt180"
  183. android:padding="10dp">
  184. <ImageView
  185. android:id="@+id/imageView5"
  186. android:layout_width="40dp"
  187. android:layout_height="40dp"
  188. android:src="@mipmap/rotation" />
  189. <TextView
  190. android:id="@+id/textView5"
  191. android:layout_width="wrap_content"
  192. android:layout_height="wrap_content"
  193. android:paddingLeft="5dp"
  194. android:text="Tilting (180°)"
  195. android:textSize="20sp" />
  196. </TableRow>
  197. <TableRow
  198. android:layout_width="match_parent"
  199. android:layout_height="wrap_content" >
  200. <View
  201. android:id="@+id/line5"
  202. android:layout_width="match_parent"
  203. android:layout_height="1dip"
  204. android:layout_weight="1"
  205. android:background="#FF909090"
  206. android:padding="2dip" />
  207. </TableRow>
  208. <TableRow
  209. android:layout_width="match_parent"
  210. android:layout_height="match_parent"
  211. android:gravity="left|center_vertical"
  212. android:minHeight="50dp"
  213. android:onClick="openPressure"
  214. android:padding="10dp">
  215. <ImageView
  216. android:id="@+id/imageView2"
  217. android:layout_width="40dp"
  218. android:layout_height="40dp"
  219. android:src="@mipmap/pressure" />
  220. <TextView
  221. android:id="@+id/textView2"
  222. android:layout_width="wrap_content"
  223. android:layout_height="wrap_content"
  224. android:paddingLeft="5dp"
  225. android:text="Pressure"
  226. android:textSize="20sp" />
  227. </TableRow>
  228. <TableRow
  229. android:layout_width="match_parent"
  230. android:layout_height="wrap_content" >
  231. <View
  232. android:id="@+id/line6"
  233. android:layout_width="match_parent"
  234. android:layout_height="1dip"
  235. android:layout_weight="1"
  236. android:background="#FF909090"
  237. android:padding="2dip" />
  238. </TableRow>
  239. <TableRow
  240. android:layout_width="match_parent"
  241. android:layout_height="match_parent"
  242. android:gravity="left|center_vertical"
  243. android:minHeight="50dp"
  244. android:onClick="openFile"
  245. android:padding="10dp">
  246. <ImageView
  247. android:id="@+id/imageView8"
  248. android:layout_width="40dp"
  249. android:layout_height="40dp"
  250. android:src="@mipmap/cog" />
  251. <TextView
  252. android:id="@+id/textView8"
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:paddingLeft="5dp"
  256. android:text="Choose Custom Object"
  257. android:textSize="20sp" />
  258. </TableRow>
  259. <TableRow
  260. android:layout_width="match_parent"
  261. android:layout_height="wrap_content" >
  262. <View
  263. android:id="@+id/line7"
  264. android:layout_width="match_parent"
  265. android:layout_height="1dip"
  266. android:layout_weight="1"
  267. android:background="#FF909090"
  268. android:padding="2dip" />
  269. </TableRow>
  270. </TableLayout>
  271. </android.support.constraint.ConstraintLayout>
  272. <android.support.design.widget.NavigationView
  273. android:id="@+id/nav_view"
  274. android:layout_width="wrap_content"
  275. android:layout_height="match_parent"
  276. android:layout_gravity="start"
  277. android:fitsSystemWindows="true"
  278. app:menu="@menu/drawer"/>
  279. </android.support.v4.widget.DrawerLayout>