Newer
Older
music / app / src / main / res / layout / fragment_song.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:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. tools:context=".SongFragment">
  17.  
  18. <TableLayout
  19. android:id="@+id/chords"
  20. android:layout_width="0dp"
  21. android:layout_height="wrap_content"
  22. android:layout_marginTop="16dp"
  23. android:clipChildren="true"
  24. android:dividerPadding="5dp"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toBottomOf="@+id/literalChords" />
  27.  
  28. <com.google.android.material.floatingactionbutton.FloatingActionButton
  29. android:id="@+id/addPhraseButton"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_marginTop="16dp"
  33. android:clickable="true"
  34. android:contentDescription="@string/new_phrase_description"
  35. android:src="@android:drawable/ic_input_add"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toBottomOf="@id/chords" />
  39.  
  40. <com.google.android.material.switchmaterial.SwitchMaterial
  41. android:id="@+id/literalChords"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_marginStart="16dp"
  45. android:layout_marginTop="16dp"
  46. android:minHeight="48dp"
  47. android:text="@string/actual_chords"
  48. app:layout_constraintStart_toStartOf="parent"
  49. app:layout_constraintTop_toTopOf="parent" />
  50.  
  51. <Spinner
  52. android:id="@+id/keySelection"
  53. android:layout_width="0dp"
  54. android:layout_height="wrap_content"
  55. android:layout_marginStart="16dp"
  56. android:layout_marginTop="16dp"
  57. android:layout_marginEnd="16dp"
  58. android:contentDescription="@string/key_selection_description"
  59. android:minHeight="48dp"
  60. app:layout_constraintEnd_toEndOf="parent"
  61. app:layout_constraintStart_toEndOf="@+id/literalChords"
  62. app:layout_constraintTop_toTopOf="parent" />
  63.  
  64. </androidx.constraintlayout.widget.ConstraintLayout>