<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright (C) 2022 Lukas Eisenhauer ~ ~ 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. ~ ~ 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. ~ ~ You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. --> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".EditInstrumentFragment"> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/editEffectsButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:clickable="true" android:contentDescription="@string/edit_voice" android:src="@android:drawable/ic_menu_edit" app:fabSize="mini" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.512" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/editEnvelopeButton" /> <TextView android:id="@+id/textView11" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/edit_envelope" app:layout_constraintBottom_toBottomOf="@+id/editEnvelopeButton" app:layout_constraintEnd_toStartOf="@+id/editEnvelopeButton" app:layout_constraintStart_toStartOf="@+id/textView7" app:layout_constraintTop_toTopOf="@+id/editEnvelopeButton" /> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" android:text="@string/edit_instrument" android:textSize="20sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_marginStart="16dp" android:layout_marginTop="40dp" android:labelFor="@id/instrumentNameTextBox" android:text="@string/instrument_name" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView" /> <EditText android:id="@+id/instrumentNameTextBox" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:ems="10" android:importantForAutofill="no" android:inputType="textPersonName" android:minHeight="48dp" android:text="@string/placeholder" app:layout_constraintBottom_toBottomOf="@+id/textView2" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/textView2" app:layout_constraintTop_toTopOf="@+id/textView2" tools:ignore="DuplicateSpeakableTextCheck" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/close_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:layout_marginBottom="16dp" android:clickable="true" android:contentDescription="@string/close" android:src="@android:drawable/ic_menu_close_clear_cancel" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/editEffectsButton" /> <Spinner android:id="@+id/waveformSelection" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="32dp" android:contentDescription="@string/waveform" android:minHeight="48dp" app:layout_constraintEnd_toEndOf="@+id/instrumentNameTextBox" app:layout_constraintStart_toEndOf="@+id/textView3" app:layout_constraintTop_toBottomOf="@+id/instrumentNameTextBox" tools:ignore="DuplicateSpeakableTextCheck" /> <Spinner android:id="@+id/voiceSelection" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="32dp" android:layout_marginEnd="16dp" android:contentDescription="@string/waveform" android:minHeight="48dp" app:layout_constraintEnd_toStartOf="@+id/editVoiceButton" app:layout_constraintStart_toEndOf="@+id/textView7" app:layout_constraintTop_toBottomOf="@+id/volumeSeek" tools:ignore="DuplicateSpeakableTextCheck" /> <TextView android:id="@+id/textView7" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/voice" app:layout_constraintBottom_toBottomOf="@+id/voiceSelection" app:layout_constraintStart_toStartOf="@+id/textView2" app:layout_constraintTop_toTopOf="@+id/voiceSelection" /> <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/waveform" app:layout_constraintBottom_toBottomOf="@+id/waveformSelection" app:layout_constraintStart_toStartOf="@+id/textView2" app:layout_constraintTop_toTopOf="@+id/waveformSelection" /> <SeekBar android:id="@+id/volumeSeek" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="16dp" app:layout_constraintEnd_toEndOf="@+id/waveformSelection" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@+id/textView7" app:layout_constraintTop_toBottomOf="@+id/volumeText" /> <TextView android:id="@+id/volumeText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:text="@string/placeholder" app:layout_constraintEnd_toEndOf="@+id/waveformSelection" app:layout_constraintStart_toStartOf="@+id/textView7" app:layout_constraintTop_toBottomOf="@+id/waveformSelection" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/editVoiceButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="true" android:contentDescription="@string/edit_voice" android:src="@android:drawable/ic_menu_edit" app:fabSize="mini" app:layout_constraintBottom_toBottomOf="@+id/voiceSelection" app:layout_constraintEnd_toEndOf="@+id/instrumentNameTextBox" app:layout_constraintTop_toTopOf="@+id/voiceSelection" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/editEnvelopeButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:clickable="true" android:contentDescription="@string/edit_voice" android:src="@android:drawable/ic_menu_edit" app:fabSize="mini" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/voiceSelection" /> <TextView android:id="@+id/textView9" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/edit_effects" app:layout_constraintBottom_toBottomOf="@+id/editEffectsButton" app:layout_constraintEnd_toStartOf="@+id/editEffectsButton" app:layout_constraintStart_toStartOf="@+id/textView7" app:layout_constraintTop_toTopOf="@+id/editEffectsButton" /> </androidx.constraintlayout.widget.ConstraintLayout>