Newer
Older
music / app / src / main / res / layout / fragment_effect.xml
@lukas lukas on 25 Aug 2022 4 KB add effect toggle
  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:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. tools:context=".ui.fragments.EffectFragment">
  17.  
  18. <androidx.cardview.widget.CardView
  19. android:layout_width="0dp"
  20. android:layout_height="wrap_content"
  21. android:layout_marginStart="16dp"
  22. android:layout_marginTop="16dp"
  23. android:layout_marginEnd="16dp"
  24. android:layout_marginBottom="16dp"
  25. app:layout_constraintBottom_toBottomOf="parent"
  26. app:layout_constraintEnd_toEndOf="parent"
  27. app:layout_constraintStart_toStartOf="parent"
  28. app:layout_constraintTop_toTopOf="parent">
  29.  
  30. <androidx.constraintlayout.widget.ConstraintLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent">
  33.  
  34. <SeekBar
  35. android:id="@+id/influenceSeekBar"
  36. android:layout_width="0dp"
  37. android:layout_height="40dp"
  38. android:layout_marginTop="8dp"
  39. android:layout_marginEnd="16dp"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintStart_toStartOf="@+id/effectName"
  42. app:layout_constraintTop_toBottomOf="@+id/activeButton" />
  43.  
  44. <TextView
  45. android:id="@+id/influenceText"
  46. android:layout_width="0dp"
  47. android:layout_height="wrap_content"
  48. android:layout_marginStart="16dp"
  49. android:text="@string/placeholder"
  50. app:layout_constraintBottom_toBottomOf="@+id/influenceSeekBar"
  51. app:layout_constraintEnd_toEndOf="@+id/parameter1Text"
  52. app:layout_constraintStart_toStartOf="parent"
  53. app:layout_constraintTop_toTopOf="@+id/influenceSeekBar" />
  54.  
  55. <TextView
  56. android:id="@+id/effectName"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_marginStart="16dp"
  60. android:layout_marginTop="16dp"
  61. android:layout_marginEnd="16dp"
  62. android:text="@string/placeholder"
  63. android:textSize="16sp"
  64. app:layout_constraintEnd_toEndOf="parent"
  65. app:layout_constraintStart_toStartOf="parent"
  66. app:layout_constraintTop_toTopOf="parent" />
  67.  
  68. <SeekBar
  69. android:id="@+id/parameter1SeekBar"
  70. android:layout_width="0dp"
  71. android:layout_height="40dp"
  72. android:layout_marginTop="16dp"
  73. android:layout_marginBottom="16dp"
  74. app:layout_constraintBottom_toBottomOf="parent"
  75. app:layout_constraintEnd_toEndOf="@+id/influenceSeekBar"
  76. app:layout_constraintStart_toStartOf="@+id/influenceSeekBar"
  77. app:layout_constraintTop_toBottomOf="@+id/influenceSeekBar" />
  78.  
  79. <TextView
  80. android:id="@+id/parameter1Text"
  81. android:layout_width="0dp"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="16dp"
  84. android:layout_marginEnd="16dp"
  85. android:text="@string/placeholder"
  86. app:layout_constraintBottom_toBottomOf="@+id/parameter1SeekBar"
  87. app:layout_constraintEnd_toStartOf="@+id/parameter1SeekBar"
  88. app:layout_constraintHorizontal_bias="1.0"
  89. app:layout_constraintStart_toStartOf="parent"
  90. app:layout_constraintTop_toTopOf="@+id/parameter1SeekBar"
  91. app:layout_constraintVertical_bias="0.0" />
  92.  
  93. <Button
  94. android:id="@+id/activeButton"
  95. android:layout_width="65dp"
  96. android:layout_height="48dp"
  97. app:layout_constraintEnd_toEndOf="@+id/influenceSeekBar"
  98. app:layout_constraintTop_toTopOf="@+id/effectName" />
  99. </androidx.constraintlayout.widget.ConstraintLayout>
  100. </androidx.cardview.widget.CardView>
  101.  
  102. </androidx.constraintlayout.widget.ConstraintLayout>