Newer
Older
music / app / src / main / res / layout / fragment_edit_chord.xml
  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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:padding="32dp"
  8. tools:context=".EditChordFragment">
  9.  
  10. <!-- TODO: Update blank fragment layout -->
  11. <TextView
  12. android:id="@+id/textView4"
  13. android:layout_width="250dp"
  14. android:layout_height="wrap_content"
  15. android:text="@string/edit_chord"
  16. app:layout_constraintEnd_toEndOf="parent"
  17. app:layout_constraintStart_toStartOf="parent"
  18. app:layout_constraintTop_toTopOf="parent" />
  19.  
  20. <Spinner
  21. android:id="@+id/pitchSpinner"
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. android:layout_marginStart="16dp"
  25. android:layout_marginTop="16dp"
  26. android:layout_marginEnd="16dp"
  27. android:contentDescription="@string/chord_pitch_description"
  28. android:minHeight="48dp"
  29. app:layout_constraintEnd_toEndOf="parent"
  30. app:layout_constraintStart_toEndOf="@+id/textView5"
  31. app:layout_constraintTop_toBottomOf="@+id/textView4" />
  32.  
  33. <Spinner
  34. android:id="@+id/typeSpinner"
  35. android:layout_width="0dp"
  36. android:layout_height="wrap_content"
  37. android:layout_marginStart="16dp"
  38. android:layout_marginTop="16dp"
  39. android:layout_marginEnd="16dp"
  40. android:contentDescription="@string/chord_type_description"
  41. android:minHeight="48dp"
  42. app:layout_constraintEnd_toEndOf="parent"
  43. app:layout_constraintStart_toEndOf="@+id/textView6"
  44. app:layout_constraintTop_toBottomOf="@+id/pitchSpinner" />
  45.  
  46. <TextView
  47. android:id="@+id/textView5"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_marginStart="24dp"
  51. android:text="@string/chord_pitch"
  52. app:layout_constraintBottom_toBottomOf="@+id/pitchSpinner"
  53. app:layout_constraintStart_toStartOf="parent"
  54. app:layout_constraintTop_toTopOf="@+id/pitchSpinner"
  55. app:layout_constraintVertical_bias="0.551" />
  56.  
  57. <TextView
  58. android:id="@+id/textView6"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:text="@string/chord_type"
  62. app:layout_constraintBottom_toBottomOf="@+id/typeSpinner"
  63. app:layout_constraintStart_toStartOf="@+id/textView5"
  64. app:layout_constraintTop_toTopOf="@+id/typeSpinner" />
  65.  
  66. <com.google.android.material.floatingactionbutton.FloatingActionButton
  67. android:id="@+id/exitButton"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginTop="32dp"
  71. android:clickable="true"
  72. android:contentDescription="@string/exit"
  73. android:src="@android:drawable/ic_menu_close_clear_cancel"
  74. app:layout_constraintEnd_toEndOf="parent"
  75. app:layout_constraintStart_toStartOf="parent"
  76. app:layout_constraintTop_toBottomOf="@+id/typeSpinner" />
  77.  
  78. </androidx.constraintlayout.widget.ConstraintLayout>