Android App zur Berechnung der Visiereinstellung eines Recurvebogens.
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.

fragment_calcsight_parameters.xml 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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/fragment_calcsight_parameters"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:isScrollContainer="true"
  9. tools:context=".ui.calcsight.CalculateSightParametersFragment">
  10. <ScrollView
  11. android:layout_width="0dp"
  12. android:layout_height="0dp"
  13. app:layout_constraintBottom_toBottomOf="parent"
  14. app:layout_constraintEnd_toEndOf="parent"
  15. app:layout_constraintHorizontal_bias="0.0"
  16. app:layout_constraintStart_toStartOf="parent"
  17. app:layout_constraintTop_toTopOf="parent"
  18. app:layout_constraintVertical_bias="0.0">
  19. <androidx.constraintlayout.widget.ConstraintLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content">
  22. <TextView
  23. android:id="@+id/bowAndArrowParams"
  24. style="@style/Widget.AppCompat.TextView"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:layout_marginEnd="8dp"
  28. android:layout_marginStart="8dp"
  29. android:layout_marginTop="16dp"
  30. android:background="@color/purple_700"
  31. android:padding="4dp"
  32. android:text="@string/titleBowAndArrowParams"
  33. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  34. android:textColor="@color/white"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintHorizontal_bias="1.0"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toTopOf="parent" />
  39. <TextView
  40. android:id="@+id/atmosphericalParams"
  41. style="@style/Widget.AppCompat.TextView"
  42. android:layout_width="0dp"
  43. android:layout_height="wrap_content"
  44. android:layout_marginEnd="8dp"
  45. android:layout_marginStart="8dp"
  46. android:layout_marginTop="16dp"
  47. android:background="@color/purple_700"
  48. android:padding="4dp"
  49. android:text="@string/titleAtmosphericalParams"
  50. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  51. android:textColor="@color/white"
  52. app:layout_constraintEnd_toEndOf="parent"
  53. app:layout_constraintHorizontal_bias="1.0"
  54. app:layout_constraintStart_toStartOf="parent"
  55. app:layout_constraintTop_toBottomOf="@+id/bowParamsFlow" />
  56. <TextView
  57. android:id="@+id/shootingParams"
  58. style="@style/Widget.AppCompat.TextView"
  59. android:layout_width="0dp"
  60. android:layout_height="wrap_content"
  61. android:layout_marginEnd="8dp"
  62. android:layout_marginStart="8dp"
  63. android:layout_marginTop="16dp"
  64. android:background="@color/purple_700"
  65. android:padding="4dp"
  66. android:text="@string/titleShootingParams"
  67. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  68. android:textColor="@color/white"
  69. app:layout_constraintEnd_toEndOf="parent"
  70. app:layout_constraintHorizontal_bias="1.0"
  71. app:layout_constraintStart_toStartOf="parent"
  72. app:layout_constraintTop_toBottomOf="@+id/airRelativeHumidityLayout" />
  73. <TextView
  74. android:id="@+id/calculationParams"
  75. style="@style/Widget.AppCompat.TextView"
  76. android:layout_width="0dp"
  77. android:layout_height="wrap_content"
  78. android:layout_marginEnd="8dp"
  79. android:layout_marginStart="8dp"
  80. android:layout_marginTop="16dp"
  81. android:background="@color/purple_700"
  82. android:padding="4dp"
  83. android:text="@string/titleCalculationParams"
  84. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  85. android:textColor="@color/white"
  86. app:layout_constraintEnd_toEndOf="parent"
  87. app:layout_constraintHorizontal_bias="1.0"
  88. app:layout_constraintStart_toStartOf="parent"
  89. app:layout_constraintTop_toBottomOf="@+id/targetCenterHeightLayout" />
  90. <androidx.constraintlayout.helper.widget.Flow
  91. android:id="@+id/bowParamsFlow"
  92. android:layout_width="0dp"
  93. android:layout_height="wrap_content"
  94. android:layout_marginEnd="8dp"
  95. android:layout_marginStart="8dp"
  96. android:layout_marginTop="8dp"
  97. app:constraint_referenced_ids="hNALayout,nockRaisingLayout,braceHeightLayout"
  98. app:flow_wrapMode="aligned"
  99. app:layout_constraintEnd_toEndOf="parent"
  100. app:layout_constraintStart_toStartOf="parent"
  101. app:layout_constraintTop_toBottomOf="@+id/arrowV0Layout" />
  102. <com.google.android.material.textfield.TextInputLayout
  103. android:id="@+id/arrowDiameterLayout"
  104. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  105. android:layout_width="0dp"
  106. android:layout_height="wrap_content"
  107. android:layout_marginEnd="8dp"
  108. android:layout_marginStart="8dp"
  109. android:layout_marginTop="8dp"
  110. app:layout_constraintEnd_toEndOf="parent"
  111. app:layout_constraintStart_toStartOf="parent"
  112. app:layout_constraintTop_toBottomOf="@+id/bowAndArrowParams">
  113. <com.google.android.material.textfield.TextInputEditText
  114. android:id="@+id/arrowDiameterTxt"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:hint="@string/arrowDiameterLbl"
  118. android:singleLine="true" />
  119. </com.google.android.material.textfield.TextInputLayout>
  120. <com.google.android.material.textfield.TextInputLayout
  121. android:id="@+id/arrowCwLayout"
  122. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  123. android:layout_width="0dp"
  124. android:layout_height="wrap_content"
  125. android:layout_marginEnd="8dp"
  126. android:layout_marginStart="8dp"
  127. android:layout_marginTop="8dp"
  128. app:layout_constraintEnd_toEndOf="parent"
  129. app:layout_constraintStart_toStartOf="parent"
  130. app:layout_constraintTop_toBottomOf="@+id/arrowDiameterLayout">
  131. <com.google.android.material.textfield.TextInputEditText
  132. android:id="@+id/arrowCwTxt"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:hint="@string/arrowCwLbl"
  136. android:singleLine="true" />
  137. </com.google.android.material.textfield.TextInputLayout>
  138. <com.google.android.material.textfield.TextInputLayout
  139. android:id="@+id/arrowWeightLayout"
  140. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  141. android:layout_width="0dp"
  142. android:layout_height="wrap_content"
  143. android:layout_marginEnd="8dp"
  144. android:layout_marginStart="8dp"
  145. android:layout_marginTop="8dp"
  146. app:layout_constraintEnd_toEndOf="parent"
  147. app:layout_constraintStart_toStartOf="parent"
  148. app:layout_constraintTop_toBottomOf="@+id/arrowCwLayout">
  149. <com.google.android.material.textfield.TextInputEditText
  150. android:id="@+id/arrowWeightTxt"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:hint="@string/arrowWeightLbl"
  154. android:singleLine="true" />
  155. </com.google.android.material.textfield.TextInputLayout>
  156. <com.google.android.material.textfield.TextInputLayout
  157. android:id="@+id/bowPulloutLayout"
  158. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  159. android:layout_width="0dp"
  160. android:layout_height="wrap_content"
  161. android:layout_marginEnd="8dp"
  162. android:layout_marginStart="8dp"
  163. android:layout_marginTop="8dp"
  164. app:layout_constraintEnd_toEndOf="parent"
  165. app:layout_constraintStart_toStartOf="parent"
  166. app:layout_constraintTop_toBottomOf="@+id/arrowWeightLayout">
  167. <com.google.android.material.textfield.TextInputEditText
  168. android:id="@+id/bowPulloutTxt"
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:hint="@string/bowPulloutLbl"
  172. android:singleLine="true" />
  173. </com.google.android.material.textfield.TextInputLayout>
  174. <com.google.android.material.textfield.TextInputLayout
  175. android:id="@+id/arrowV0Layout"
  176. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  177. android:layout_width="0dp"
  178. android:layout_height="wrap_content"
  179. android:layout_marginEnd="8dp"
  180. android:layout_marginStart="8dp"
  181. android:layout_marginTop="8dp"
  182. app:layout_constraintEnd_toEndOf="parent"
  183. app:layout_constraintStart_toStartOf="parent"
  184. app:layout_constraintTop_toBottomOf="@+id/bowPulloutLayout">
  185. <com.google.android.material.textfield.TextInputEditText
  186. android:id="@+id/arrowV0Txt"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:hint="@string/arrowV0Lbl"
  190. android:singleLine="true" />
  191. </com.google.android.material.textfield.TextInputLayout>
  192. <com.google.android.material.textfield.TextInputLayout
  193. android:id="@+id/hNALayout"
  194. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  195. android:layout_width="0dp"
  196. android:layout_height="wrap_content"
  197. android:paddingRight="4dp"
  198. tools:layout_editor_absoluteX="61dp"
  199. tools:layout_editor_absoluteY="435dp">
  200. <com.google.android.material.textfield.TextInputEditText
  201. android:id="@+id/hNATxt"
  202. android:layout_width="match_parent"
  203. android:layout_height="wrap_content"
  204. android:hint="@string/bowParamhNALbl"
  205. android:nextFocusDown="@id/nockRaisingTxt"
  206. android:singleLine="true" />
  207. </com.google.android.material.textfield.TextInputLayout>
  208. <com.google.android.material.textfield.TextInputLayout
  209. android:id="@+id/nockRaisingLayout"
  210. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  211. android:layout_width="0dp"
  212. android:layout_height="wrap_content"
  213. android:paddingHorizontal="4dp"
  214. tools:layout_editor_absoluteX="140dp"
  215. tools:layout_editor_absoluteY="435dp">
  216. <com.google.android.material.textfield.TextInputEditText
  217. android:id="@+id/nockRaisingTxt"
  218. android:layout_width="match_parent"
  219. android:layout_height="wrap_content"
  220. android:hint="@string/bowParamNockRaisingLbl"
  221. android:nextFocusDown="@id/braceHeightTxt"
  222. android:singleLine="true" />
  223. </com.google.android.material.textfield.TextInputLayout>
  224. <com.google.android.material.textfield.TextInputLayout
  225. android:id="@+id/braceHeightLayout"
  226. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  227. android:layout_width="0dp"
  228. android:layout_height="wrap_content"
  229. android:paddingLeft="4dp"
  230. tools:layout_editor_absoluteX="355dp"
  231. tools:layout_editor_absoluteY="435dp">
  232. <com.google.android.material.textfield.TextInputEditText
  233. android:id="@+id/braceHeightTxt"
  234. android:layout_width="match_parent"
  235. android:layout_height="wrap_content"
  236. android:hint="@string/bowParamBraceHeightLbl"
  237. android:nextFocusDown="@id/airTemperatureTxt"
  238. android:singleLine="true" />
  239. </com.google.android.material.textfield.TextInputLayout>
  240. <com.google.android.material.textfield.TextInputLayout
  241. android:id="@+id/airTemperatureLayout"
  242. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  243. android:layout_width="0dp"
  244. android:layout_height="wrap_content"
  245. android:layout_marginEnd="8dp"
  246. android:layout_marginStart="8dp"
  247. android:layout_marginTop="8dp"
  248. app:layout_constraintEnd_toEndOf="parent"
  249. app:layout_constraintStart_toStartOf="parent"
  250. app:layout_constraintTop_toBottomOf="@+id/atmosphericalParams">
  251. <com.google.android.material.textfield.TextInputEditText
  252. android:id="@+id/airTemperatureTxt"
  253. android:layout_width="match_parent"
  254. android:layout_height="wrap_content"
  255. android:hint="@string/airTemperatureLbl"
  256. android:singleLine="true" />
  257. </com.google.android.material.textfield.TextInputLayout>
  258. <com.google.android.material.textfield.TextInputLayout
  259. android:id="@+id/airRelativeHumidityLayout"
  260. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  261. android:layout_width="0dp"
  262. android:layout_height="wrap_content"
  263. android:layout_marginEnd="8dp"
  264. android:layout_marginStart="8dp"
  265. android:layout_marginTop="8dp"
  266. app:layout_constraintEnd_toEndOf="parent"
  267. app:layout_constraintStart_toStartOf="parent"
  268. app:layout_constraintTop_toBottomOf="@+id/airTemperatureLayout">
  269. <com.google.android.material.textfield.TextInputEditText
  270. android:id="@+id/airRelativeHumidityTxt"
  271. android:layout_width="match_parent"
  272. android:layout_height="wrap_content"
  273. android:hint="@string/airRelativeHumidityLbl"
  274. android:singleLine="true" />
  275. </com.google.android.material.textfield.TextInputLayout>
  276. <com.google.android.material.textfield.TextInputLayout
  277. android:id="@+id/shootingDistanzLayout"
  278. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  279. android:layout_width="0dp"
  280. android:layout_height="wrap_content"
  281. android:layout_marginEnd="8dp"
  282. android:layout_marginStart="8dp"
  283. android:layout_marginTop="8dp"
  284. app:layout_constraintEnd_toEndOf="parent"
  285. app:layout_constraintStart_toStartOf="parent"
  286. app:layout_constraintTop_toBottomOf="@+id/shootingParams">
  287. <com.google.android.material.textfield.TextInputEditText
  288. android:id="@+id/shootingDistanzTxt"
  289. android:layout_width="match_parent"
  290. android:layout_height="wrap_content"
  291. android:hint="@string/shootingDistanzLbl"
  292. android:singleLine="true" />
  293. </com.google.android.material.textfield.TextInputLayout>
  294. <com.google.android.material.textfield.TextInputLayout
  295. android:id="@+id/arrowNockHeightLayout"
  296. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  297. android:layout_width="0dp"
  298. android:layout_height="wrap_content"
  299. android:layout_marginEnd="8dp"
  300. android:layout_marginStart="8dp"
  301. android:layout_marginTop="8dp"
  302. app:layout_constraintEnd_toEndOf="parent"
  303. app:layout_constraintStart_toStartOf="parent"
  304. app:layout_constraintTop_toBottomOf="@+id/shootingDistanzLayout">
  305. <com.google.android.material.textfield.TextInputEditText
  306. android:id="@+id/arrowNockHeightTxt"
  307. android:layout_width="match_parent"
  308. android:layout_height="wrap_content"
  309. android:hint="@string/arrowNockHeightLbl"
  310. android:singleLine="true" />
  311. </com.google.android.material.textfield.TextInputLayout>
  312. <com.google.android.material.textfield.TextInputLayout
  313. android:id="@+id/targetCenterHeightLayout"
  314. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  315. android:layout_width="0dp"
  316. android:layout_height="wrap_content"
  317. android:layout_marginEnd="8dp"
  318. android:layout_marginStart="8dp"
  319. android:layout_marginTop="8dp"
  320. app:layout_constraintEnd_toEndOf="parent"
  321. app:layout_constraintStart_toStartOf="parent"
  322. app:layout_constraintTop_toBottomOf="@+id/arrowNockHeightLayout">
  323. <com.google.android.material.textfield.TextInputEditText
  324. android:id="@+id/targetCenterHeightTxt"
  325. android:layout_width="match_parent"
  326. android:layout_height="wrap_content"
  327. android:hint="@string/targetCenterHeightLbl"
  328. android:singleLine="true" />
  329. </com.google.android.material.textfield.TextInputLayout>
  330. <com.google.android.material.textfield.TextInputLayout
  331. android:id="@+id/deltaTimeLayout"
  332. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  333. android:layout_width="0dp"
  334. android:layout_height="wrap_content"
  335. android:layout_marginEnd="8dp"
  336. android:layout_marginStart="8dp"
  337. android:layout_marginTop="8dp"
  338. app:layout_constraintEnd_toEndOf="parent"
  339. app:layout_constraintStart_toStartOf="parent"
  340. app:layout_constraintTop_toBottomOf="@+id/calculationParams">
  341. <AutoCompleteTextView
  342. android:id="@+id/deltaTimeTxt"
  343. android:layout_width="match_parent"
  344. android:layout_height="wrap_content"
  345. android:hint="@string/deltaTimeLbl"
  346. android:nextFocusDown="@id/calcPrecisionTxt"
  347. android:nextFocusForward="@id/calcPrecisionTxt"
  348. android:nextFocusRight="@id/calcPrecisionTxt"
  349. android:editable="false"
  350. android:singleLine="true" />
  351. </com.google.android.material.textfield.TextInputLayout>
  352. <com.google.android.material.textfield.TextInputLayout
  353. android:id="@+id/calcPrecisionLayout"
  354. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  355. android:layout_width="0dp"
  356. android:layout_height="wrap_content"
  357. android:layout_marginBottom="8dp"
  358. android:layout_marginEnd="8dp"
  359. android:layout_marginStart="8dp"
  360. android:layout_marginTop="8dp"
  361. app:layout_constraintBottom_toBottomOf="parent"
  362. app:layout_constraintEnd_toEndOf="parent"
  363. app:layout_constraintStart_toStartOf="parent"
  364. app:layout_constraintTop_toBottomOf="@+id/deltaTimeLayout">
  365. <AutoCompleteTextView
  366. android:id="@+id/calcPrecisionTxt"
  367. android:layout_width="match_parent"
  368. android:layout_height="wrap_content"
  369. android:hint="@string/calcPrecisionLbl"
  370. android:nextFocusDown="@id/arrowDiameterTxt"
  371. android:nextFocusForward="@id/arrowDiameterTxt"
  372. android:nextFocusRight="@id/arrowDiameterTxt"
  373. android:editable="false"
  374. android:singleLine="true" />
  375. </com.google.android.material.textfield.TextInputLayout>
  376. </androidx.constraintlayout.widget.ConstraintLayout>
  377. </ScrollView>
  378. <com.google.android.material.floatingactionbutton.FloatingActionButton
  379. android:id="@+id/fab_calculate"
  380. android:layout_width="wrap_content"
  381. android:layout_height="wrap_content"
  382. android:layout_gravity="bottom|end"
  383. android:layout_marginBottom="8dp"
  384. android:layout_marginEnd="8dp"
  385. app:borderWidth="6dp"
  386. app:fabSize="auto"
  387. app:layout_constraintBottom_toBottomOf="parent"
  388. app:layout_constraintEnd_toEndOf="parent"
  389. app:maxImageSize="36dp"
  390. app:srcCompat="@drawable/ic_icon_calculate" />
  391. </androidx.constraintlayout.widget.ConstraintLayout>