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.

activity_equipment_configuration.xml 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:id="@+id/activity_equipment_configuration"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".ui.configuration.ArcherySetupConfigurationActivity">
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. app:layout_constraintBottom_toBottomOf="parent"
  13. app:layout_constraintEnd_toEndOf="parent"
  14. app:layout_constraintStart_toStartOf="parent"
  15. app:layout_constraintTop_toTopOf="parent">
  16. <androidx.constraintlayout.widget.ConstraintLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19. <TextView
  20. android:id="@+id/configArcherySetupLbl"
  21. style="@style/Widget.AppCompat.TextView"
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. android:layout_marginEnd="8dp"
  25. android:layout_marginStart="8dp"
  26. android:layout_marginTop="16dp"
  27. android:background="@color/purple_700"
  28. android:padding="4dp"
  29. android:text="@string/asTitleArcherySetupConfig"
  30. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  31. android:textColor="@color/white"
  32. app:layout_constraintEnd_toEndOf="parent"
  33. app:layout_constraintHorizontal_bias="1.0"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toTopOf="parent" />
  36. <com.google.android.material.textfield.TextInputLayout
  37. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  38. android:id="@+id/asArcherySetupSelectionLayout"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_marginEnd="8dp"
  42. android:layout_marginStart="8dp"
  43. android:layout_marginTop="8dp"
  44. app:layout_constraintEnd_toEndOf="parent"
  45. app:layout_constraintStart_toStartOf="parent"
  46. app:layout_constraintTop_toBottomOf="@+id/configArcherySetupLbl">
  47. <AutoCompleteTextView
  48. android:id="@+id/asArcherySetupSelectionTxt"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:editable="false"
  52. android:hint="@string/asArcherySetupLbl"
  53. android:singleLine="true" />
  54. </com.google.android.material.textfield.TextInputLayout>
  55. <com.google.android.material.textfield.TextInputLayout
  56. android:id="@+id/asLabelLayout"
  57. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  58. android:layout_width="0dp"
  59. android:layout_height="wrap_content"
  60. android:layout_marginEnd="8dp"
  61. android:layout_marginStart="8dp"
  62. android:layout_marginTop="8dp"
  63. app:layout_constraintEnd_toEndOf="parent"
  64. app:layout_constraintStart_toStartOf="parent"
  65. app:layout_constraintTop_toBottomOf="@+id/asArcherySetupSelectionLayout">
  66. <com.google.android.material.textfield.TextInputEditText
  67. android:id="@+id/asLabelTxt"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:hint="@string/asLabel"
  71. android:singleLine="true" />
  72. </com.google.android.material.textfield.TextInputLayout>
  73. <com.google.android.material.textfield.TextInputLayout
  74. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  75. android:id="@+id/asRiserSelectionLayout"
  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="8dp"
  81. app:layout_constraintEnd_toEndOf="parent"
  82. app:layout_constraintStart_toStartOf="parent"
  83. app:layout_constraintTop_toBottomOf="@+id/asLabelLayout">
  84. <AutoCompleteTextView
  85. android:id="@+id/asRiserSelectionTxt"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:editable="false"
  89. android:hint="@string/rcRiserLbl"
  90. android:singleLine="true" />
  91. </com.google.android.material.textfield.TextInputLayout>
  92. <com.google.android.material.textfield.TextInputLayout
  93. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  94. android:id="@+id/asSightSelectionLayout"
  95. android:layout_width="0dp"
  96. android:layout_height="wrap_content"
  97. android:layout_marginEnd="8dp"
  98. android:layout_marginStart="8dp"
  99. android:layout_marginTop="8dp"
  100. app:layout_constraintEnd_toEndOf="parent"
  101. app:layout_constraintStart_toStartOf="parent"
  102. app:layout_constraintTop_toBottomOf="@+id/asRiserSelectionLayout">
  103. <AutoCompleteTextView
  104. android:id="@+id/asSightSelectionTxt"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:editable="false"
  108. android:hint="@string/rcSightLbl"
  109. android:singleLine="true" />
  110. </com.google.android.material.textfield.TextInputLayout>
  111. <com.google.android.material.textfield.TextInputLayout
  112. android:id="@+id/asArrowDiameterLayout"
  113. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  114. android:layout_width="0dp"
  115. android:layout_height="wrap_content"
  116. android:layout_marginEnd="8dp"
  117. android:layout_marginStart="8dp"
  118. android:layout_marginTop="8dp"
  119. app:layout_constraintEnd_toEndOf="parent"
  120. app:layout_constraintStart_toStartOf="parent"
  121. app:layout_constraintTop_toBottomOf="@+id/asSightSelectionLayout">
  122. <com.google.android.material.textfield.TextInputEditText
  123. android:id="@+id/asArrowDiameterTxt"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:hint="@string/arrowDiameterLbl"
  127. android:singleLine="true" />
  128. </com.google.android.material.textfield.TextInputLayout>
  129. <com.google.android.material.textfield.TextInputLayout
  130. android:id="@+id/asArrowCWLayout"
  131. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  132. android:layout_width="0dp"
  133. android:layout_height="wrap_content"
  134. android:layout_marginEnd="8dp"
  135. android:layout_marginStart="8dp"
  136. android:layout_marginTop="8dp"
  137. app:layout_constraintEnd_toEndOf="parent"
  138. app:layout_constraintStart_toStartOf="parent"
  139. app:layout_constraintTop_toBottomOf="@+id/asArrowDiameterLayout">
  140. <com.google.android.material.textfield.TextInputEditText
  141. android:id="@+id/asArrowCWTxt"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:hint="@string/arrowCwLbl"
  145. android:singleLine="true" />
  146. </com.google.android.material.textfield.TextInputLayout>
  147. <com.google.android.material.textfield.TextInputLayout
  148. android:id="@+id/asArrowWeightLayout"
  149. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  150. android:layout_width="0dp"
  151. android:layout_height="wrap_content"
  152. android:layout_marginEnd="8dp"
  153. android:layout_marginStart="8dp"
  154. android:layout_marginTop="8dp"
  155. app:layout_constraintEnd_toEndOf="parent"
  156. app:layout_constraintStart_toStartOf="parent"
  157. app:layout_constraintTop_toBottomOf="@+id/asArrowCWLayout">
  158. <com.google.android.material.textfield.TextInputEditText
  159. android:id="@+id/asArrowWeightTxt"
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:hint="@string/arrowWeightLbl"
  163. android:singleLine="true" />
  164. </com.google.android.material.textfield.TextInputLayout>
  165. <com.google.android.material.textfield.TextInputLayout
  166. android:id="@+id/asArrowV0Layout"
  167. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  168. android:layout_width="0dp"
  169. android:layout_height="wrap_content"
  170. android:layout_marginEnd="8dp"
  171. android:layout_marginStart="8dp"
  172. android:layout_marginTop="8dp"
  173. app:layout_constraintEnd_toEndOf="parent"
  174. app:layout_constraintStart_toStartOf="parent"
  175. app:layout_constraintTop_toBottomOf="@+id/asArrowWeightLayout">
  176. <com.google.android.material.textfield.TextInputEditText
  177. android:id="@+id/asArrowV0Txt"
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:hint="@string/arrowV0Lbl"
  181. android:singleLine="true" />
  182. </com.google.android.material.textfield.TextInputLayout>
  183. <com.google.android.material.textfield.TextInputLayout
  184. android:id="@+id/asBowPulloutLayout"
  185. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  186. android:layout_width="0dp"
  187. android:layout_height="wrap_content"
  188. android:layout_marginEnd="8dp"
  189. android:layout_marginStart="8dp"
  190. android:layout_marginTop="8dp"
  191. app:layout_constraintEnd_toEndOf="parent"
  192. app:layout_constraintStart_toStartOf="parent"
  193. app:layout_constraintTop_toBottomOf="@+id/asArrowV0Layout">
  194. <com.google.android.material.textfield.TextInputEditText
  195. android:id="@+id/asBowPulloutTxt"
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:hint="@string/bowPulloutLbl"
  199. android:singleLine="true" />
  200. </com.google.android.material.textfield.TextInputLayout>
  201. <com.google.android.material.textfield.TextInputLayout
  202. android:id="@+id/asArrowNockHeightLayout"
  203. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  204. android:layout_width="0dp"
  205. android:layout_height="wrap_content"
  206. android:layout_marginEnd="8dp"
  207. android:layout_marginStart="8dp"
  208. android:layout_marginTop="8dp"
  209. app:layout_constraintEnd_toEndOf="parent"
  210. app:layout_constraintStart_toStartOf="parent"
  211. app:layout_constraintTop_toBottomOf="@+id/asBowPulloutLayout">
  212. <com.google.android.material.textfield.TextInputEditText
  213. android:id="@+id/asArrowNockHeightTxt"
  214. android:layout_width="match_parent"
  215. android:layout_height="wrap_content"
  216. android:hint="@string/arrowNockHeightLbl"
  217. android:singleLine="true" />
  218. </com.google.android.material.textfield.TextInputLayout>
  219. <com.google.android.material.textfield.TextInputLayout
  220. android:id="@+id/asHNALayout"
  221. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  222. android:layout_width="0dp"
  223. android:layout_height="wrap_content"
  224. android:layout_marginEnd="8dp"
  225. android:layout_marginStart="8dp"
  226. android:layout_marginTop="8dp"
  227. app:layout_constraintEnd_toEndOf="parent"
  228. app:layout_constraintStart_toStartOf="parent"
  229. app:layout_constraintTop_toBottomOf="@+id/asArrowNockHeightLayout">
  230. <com.google.android.material.textfield.TextInputEditText
  231. android:id="@+id/asHNATxt"
  232. android:layout_width="match_parent"
  233. android:layout_height="wrap_content"
  234. android:hint="@string/bowParamhNALbl"
  235. android:nextFocusDown="@id/nockRaisingTxt"
  236. android:singleLine="true" />
  237. </com.google.android.material.textfield.TextInputLayout>
  238. <com.google.android.material.textfield.TextInputLayout
  239. android:id="@+id/asNockRaisingLayout"
  240. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  241. android:layout_width="0dp"
  242. android:layout_height="wrap_content"
  243. android:layout_marginEnd="8dp"
  244. android:layout_marginStart="8dp"
  245. android:layout_marginTop="8dp"
  246. app:layout_constraintEnd_toEndOf="parent"
  247. app:layout_constraintStart_toStartOf="parent"
  248. app:layout_constraintTop_toBottomOf="@+id/asHNALayout">
  249. <com.google.android.material.textfield.TextInputEditText
  250. android:id="@+id/asNockRaisingTxt"
  251. android:layout_width="match_parent"
  252. android:layout_height="wrap_content"
  253. android:hint="@string/bowParamNockRaisingLbl"
  254. android:singleLine="true" />
  255. </com.google.android.material.textfield.TextInputLayout>
  256. <com.google.android.material.textfield.TextInputLayout
  257. android:id="@+id/asBraceHeightLayout"
  258. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  259. android:layout_width="0dp"
  260. android:layout_height="wrap_content"
  261. android:layout_marginEnd="8dp"
  262. android:layout_marginStart="8dp"
  263. android:layout_marginTop="8dp"
  264. app:layout_constraintEnd_toEndOf="parent"
  265. app:layout_constraintStart_toStartOf="parent"
  266. app:layout_constraintTop_toBottomOf="@+id/asNockRaisingLayout">
  267. <com.google.android.material.textfield.TextInputEditText
  268. android:id="@+id/asBraceHeightTxt"
  269. android:layout_width="match_parent"
  270. android:layout_height="wrap_content"
  271. android:hint="@string/bowParamBraceHeightLbl"
  272. android:singleLine="true" />
  273. </com.google.android.material.textfield.TextInputLayout>
  274. <com.google.android.material.textfield.TextInputLayout
  275. android:id="@+id/asTargetCenterHeightLayout"
  276. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  277. android:layout_width="0dp"
  278. android:layout_height="wrap_content"
  279. android:layout_marginEnd="8dp"
  280. android:layout_marginStart="8dp"
  281. android:layout_marginTop="8dp"
  282. app:layout_constraintEnd_toEndOf="parent"
  283. app:layout_constraintStart_toStartOf="parent"
  284. app:layout_constraintTop_toBottomOf="@+id/asBraceHeightLayout">
  285. <com.google.android.material.textfield.TextInputEditText
  286. android:id="@+id/asTargetCenterHeightTxt"
  287. android:layout_width="match_parent"
  288. android:layout_height="wrap_content"
  289. android:hint="@string/targetCenterHeightLbl"
  290. android:singleLine="true" />
  291. </com.google.android.material.textfield.TextInputLayout>
  292. <com.google.android.material.textfield.TextInputLayout
  293. android:id="@+id/asDeltaTimeLayoutLayout"
  294. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  295. android:layout_width="0dp"
  296. android:layout_height="wrap_content"
  297. android:layout_marginEnd="8dp"
  298. android:layout_marginStart="8dp"
  299. android:layout_marginTop="8dp"
  300. app:layout_constraintEnd_toEndOf="parent"
  301. app:layout_constraintStart_toStartOf="parent"
  302. app:layout_constraintTop_toBottomOf="@+id/asTargetCenterHeightLayout">
  303. <com.google.android.material.textfield.TextInputEditText
  304. android:id="@+id/asDeltaTimeTxt"
  305. android:layout_width="match_parent"
  306. android:layout_height="wrap_content"
  307. android:hint="@string/deltaTimeLbl"
  308. android:singleLine="true" />
  309. </com.google.android.material.textfield.TextInputLayout>
  310. <com.google.android.material.textfield.TextInputLayout
  311. android:id="@+id/asCalcPrecisionLayoutLayout"
  312. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  313. android:layout_width="0dp"
  314. android:layout_height="wrap_content"
  315. android:layout_marginEnd="8dp"
  316. android:layout_marginStart="8dp"
  317. android:layout_marginTop="8dp"
  318. app:layout_constraintEnd_toEndOf="parent"
  319. app:layout_constraintStart_toStartOf="parent"
  320. app:layout_constraintTop_toBottomOf="@+id/asDeltaTimeLayoutLayout">
  321. <com.google.android.material.textfield.TextInputEditText
  322. android:id="@+id/asCalcPrecisionTxt"
  323. android:layout_width="match_parent"
  324. android:layout_height="wrap_content"
  325. android:hint="@string/calcPrecisionLbl"
  326. android:singleLine="true" />
  327. </com.google.android.material.textfield.TextInputLayout>
  328. <com.google.android.material.textfield.TextInputLayout
  329. android:id="@+id/asSightVertScaleMiddle"
  330. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  331. android:layout_width="0dp"
  332. android:layout_height="wrap_content"
  333. android:layout_marginEnd="8dp"
  334. android:layout_marginStart="8dp"
  335. android:layout_marginTop="8dp"
  336. app:layout_constraintEnd_toEndOf="parent"
  337. app:layout_constraintStart_toStartOf="parent"
  338. app:layout_constraintTop_toBottomOf="@+id/asCalcPrecisionLayoutLayout">
  339. <com.google.android.material.textfield.TextInputEditText
  340. android:id="@+id/asSightVertScaleMiddleTxt"
  341. android:layout_width="match_parent"
  342. android:layout_height="wrap_content"
  343. android:hint="@string/scVertSkalaMiddleLbl"
  344. android:singleLine="true" />
  345. </com.google.android.material.textfield.TextInputLayout>
  346. <com.google.android.material.textfield.TextInputLayout
  347. android:id="@+id/asSightHorzSetting"
  348. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  349. android:layout_width="0dp"
  350. android:layout_height="wrap_content"
  351. android:layout_marginEnd="8dp"
  352. android:layout_marginStart="8dp"
  353. android:layout_marginTop="8dp"
  354. app:layout_constraintEnd_toEndOf="parent"
  355. app:layout_constraintStart_toStartOf="parent"
  356. app:layout_constraintTop_toBottomOf="@+id/asSightVertScaleMiddle">
  357. <com.google.android.material.textfield.TextInputEditText
  358. android:id="@+id/asSightHorzSettingTxt"
  359. android:layout_width="match_parent"
  360. android:layout_height="wrap_content"
  361. android:hint="@string/scHeVSLbl"
  362. android:singleLine="true" />
  363. </com.google.android.material.textfield.TextInputLayout>
  364. <LinearLayout
  365. android:layout_width="fill_parent"
  366. android:layout_height="wrap_content"
  367. android:layout_marginTop="24dp"
  368. android:orientation="horizontal"
  369. app:layout_constraintEnd_toEndOf="parent"
  370. app:layout_constraintStart_toStartOf="parent"
  371. app:layout_constraintTop_toBottomOf="@+id/asSightHorzSetting">
  372. <Button
  373. android:id="@+id/archerystpcfg_button_new"
  374. android:layout_width="fill_parent"
  375. android:layout_height="wrap_content"
  376. android:layout_marginHorizontal="8dp"
  377. android:layout_weight="1"
  378. android:text="@string/caption_New"
  379. app:icon="@drawable/ic_icon_add"
  380. app:iconPadding="-8dp" />
  381. <Button
  382. android:id="@+id/archerystpcfg_button_delete"
  383. android:layout_width="fill_parent"
  384. android:layout_height="wrap_content"
  385. android:layout_marginHorizontal="8dp"
  386. android:layout_weight="1"
  387. android:paddingLeft="4dp"
  388. android:paddingRight="4dp"
  389. android:text="@string/caption_Delete"
  390. app:icon="@drawable/ic_icon_delete"
  391. app:iconPadding="-8dp" />
  392. <Button
  393. android:id="@+id/archerystpcfg_button_save"
  394. android:layout_width="fill_parent"
  395. android:layout_height="wrap_content"
  396. android:layout_marginHorizontal="8dp"
  397. android:layout_weight="1"
  398. android:paddingLeft="4dp"
  399. android:paddingRight="4dp"
  400. android:text="@string/caption_Save"
  401. app:icon="@drawable/ic_icon_save"
  402. app:iconPadding="0dp" />
  403. </LinearLayout>
  404. </androidx.constraintlayout.widget.ConstraintLayout>
  405. </ScrollView>
  406. </androidx.constraintlayout.widget.ConstraintLayout>