Newer
Older
music / app / src / main / res / layout / fragment_edit_voice.xml
  1. <?xml version="1.0" encoding="utf-8"?><!--
  2. ~ Copyright (C) 2022 Lukas Eisenhauer
  3. ~
  4. ~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or(at your option) any later version.
  5. ~
  6. ~ This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  7. ~
  8. ~ You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
  9. -->
  10.  
  11. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12. xmlns:app="http://schemas.android.com/apk/res-auto"
  13. xmlns:tools="http://schemas.android.com/tools"
  14. android:id="@+id/frameLayout2"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. tools:context=".ui.fragments.EditVoiceFragment">
  18.  
  19. <TextView
  20. android:id="@+id/textView8"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_marginStart="16dp"
  24. android:text="@string/edit_voice"
  25. android:textAlignment="center"
  26. android:textSize="20sp"
  27. app:layout_constraintBottom_toBottomOf="@+id/restrikeButton"
  28. app:layout_constraintStart_toStartOf="parent"
  29. app:layout_constraintTop_toTopOf="@+id/restrikeButton" />
  30.  
  31. <com.google.android.material.floatingactionbutton.FloatingActionButton
  32. android:id="@+id/closeButton"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginBottom="32dp"
  36. android:clickable="true"
  37. android:contentDescription="@string/close"
  38. android:src="@android:drawable/ic_menu_close_clear_cancel"
  39. app:layout_constraintBottom_toBottomOf="parent"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintStart_toStartOf="parent" />
  42.  
  43. <Button
  44. android:id="@+id/restrikeButton"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_marginTop="16dp"
  48. android:layout_marginEnd="16dp"
  49. android:contentDescription="@string/restrike_description"
  50. android:text="@string/restrike"
  51. app:layout_constraintEnd_toEndOf="parent"
  52. app:layout_constraintTop_toTopOf="parent" />
  53.  
  54. <ScrollView
  55. android:id="@+id/scrollView2"
  56. android:layout_width="0dp"
  57. android:layout_height="0dp"
  58. android:layout_marginTop="16dp"
  59. android:layout_marginBottom="32dp"
  60. app:layout_constraintBottom_toTopOf="@+id/closeButton"
  61. app:layout_constraintEnd_toEndOf="parent"
  62. app:layout_constraintHorizontal_bias="0.0"
  63. app:layout_constraintStart_toStartOf="parent"
  64. app:layout_constraintTop_toBottomOf="@+id/octaveSeekBar"
  65. tools:ignore="SpeakableTextPresentCheck">
  66.  
  67. <LinearLayout
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:orientation="vertical">
  71.  
  72. <TableLayout
  73. android:id="@+id/noteGrid"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_marginStart="16dp"
  77. android:layout_marginTop="32dp"
  78. android:layout_marginEnd="16dp" />
  79. </LinearLayout>
  80. </ScrollView>
  81.  
  82. <SeekBar
  83. android:id="@+id/octaveSeekBar"
  84. android:layout_width="0dp"
  85. android:layout_height="wrap_content"
  86. android:layout_marginStart="16dp"
  87. android:layout_marginTop="16dp"
  88. app:layout_constraintEnd_toEndOf="@+id/restrikeButton"
  89. app:layout_constraintStart_toEndOf="@+id/octaveText"
  90. app:layout_constraintTop_toBottomOf="@+id/restrikeButton" />
  91.  
  92. <TextView
  93. android:id="@+id/octaveText"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:text="@string/placeholder"
  97. app:layout_constraintBottom_toBottomOf="@+id/octaveSeekBar"
  98. app:layout_constraintStart_toStartOf="@+id/textView8"
  99. app:layout_constraintTop_toTopOf="@+id/octaveSeekBar" />
  100. </androidx.constraintlayout.widget.ConstraintLayout>