PlayerAndroid/app/src/main/res/layout/activity_album_tag_editor.xml

159 lines
7.3 KiB
XML
Raw Normal View History

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2019-11-12 17:32:30 +00:00
android:layout_height="match_parent"
2021-09-16 12:50:14 +00:00
android:background="?attr/colorSurface"
2021-09-16 12:59:31 +00:00
android:fitsSystemWindows="true"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.appbar.AppBarLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/appBarLayout"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-09-16 12:59:31 +00:00
android:fitsSystemWindows="true"
app:liftOnScroll="true">
2019-11-12 17:32:30 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
2020-07-19 21:00:30 +00:00
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
2019-11-12 17:32:30 +00:00
app:title="@string/action_tag_editor" />
2018-07-27 13:07:33 +00:00
2019-11-12 17:32:30 +00:00
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
<LinearLayout
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 17:32:30 +00:00
android:orientation="vertical">
2018-09-09 19:44:46 +00:00
2019-11-12 17:32:30 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareCardView
2018-12-06 10:23:03 +00:00
android:id="@+id/imageContainer"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
2019-11-12 17:32:30 +00:00
android:layout_height="wrap_content"
2019-12-01 15:45:12 +00:00
android:layout_margin="16dp"
2019-11-12 17:32:30 +00:00
android:transitionName="@string/transition_album_art"
app:cardCornerRadius="@dimen/m3_card_large_radius"
2019-11-12 17:32:30 +00:00
app:cardElevation="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2018-09-09 19:44:46 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-12-06 10:23:03 +00:00
android:id="@+id/editorImage"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
2019-11-12 17:32:30 +00:00
tools:srcCompat="@tools:sample/backgrounds/scenic[5]" />
2018-09-09 19:44:46 +00:00
2019-11-12 17:32:30 +00:00
</code.name.monkey.retromusic.views.WidthFitSquareCardView>
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<com.google.android.material.textfield.TextInputLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/albumTitleContainer"
2019-06-04 05:58:34 +00:00
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 17:32:30 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2018-09-09 19:44:46 +00:00
app:hintEnabled="true">
<com.google.android.material.textfield.TextInputEditText
2018-12-06 10:23:03 +00:00
android:id="@+id/albumText"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/album"
android:inputType="text|textCapWords"
2019-03-25 12:43:43 +00:00
android:maxLines="1" />
2018-09-09 19:44:46 +00:00
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/albumArtistContainer"
2019-06-04 05:58:34 +00:00
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 17:32:30 +00:00
android:layout_marginStart="16dp"
2018-09-09 19:44:46 +00:00
android:layout_marginTop="8dp"
2019-11-12 17:32:30 +00:00
android:layout_marginEnd="16dp"
2018-09-09 19:44:46 +00:00
app:hintEnabled="true">
<com.google.android.material.textfield.TextInputEditText
2018-12-06 10:23:03 +00:00
android:id="@+id/albumArtistText"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/album_artist"
android:inputType="text|textCapWords"
2019-03-25 12:43:43 +00:00
android:maxLines="1" />
2018-09-09 19:44:46 +00:00
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/genreContainer"
2019-06-04 05:58:34 +00:00
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 17:32:30 +00:00
android:layout_marginStart="16dp"
2018-09-09 19:44:46 +00:00
android:layout_marginTop="8dp"
2019-11-12 17:32:30 +00:00
android:layout_marginEnd="16dp"
2018-09-09 19:44:46 +00:00
app:hintEnabled="true">
<com.google.android.material.textfield.TextInputEditText
2018-12-06 10:23:03 +00:00
android:id="@+id/genreTitle"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/genre"
android:inputType="text|textCapWords"
2019-03-25 12:43:43 +00:00
android:maxLines="1" />
2018-09-09 19:44:46 +00:00
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/yearContainer"
2019-06-04 05:58:34 +00:00
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 17:32:30 +00:00
android:layout_marginStart="16dp"
2018-09-09 19:44:46 +00:00
android:layout_marginTop="8dp"
2019-11-12 17:32:30 +00:00
android:layout_marginEnd="16dp"
2018-09-09 19:44:46 +00:00
app:hintEnabled="true">
<com.google.android.material.textfield.TextInputEditText
2018-12-06 10:23:03 +00:00
android:id="@+id/yearTitle"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/year"
android:inputType="text|number"
2019-03-25 12:43:43 +00:00
android:maxLines="1" />
2018-09-09 19:44:46 +00:00
</com.google.android.material.textfield.TextInputLayout>
2019-11-12 17:32:30 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/saveTags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_margin="16dp"
android:gravity="center"
android:paddingStart="32dp"
android:paddingTop="12dp"
android:paddingEnd="32dp"
android:paddingBottom="12dp"
android:text="@string/save"
app:cornerRadius="25dp"
2020-07-19 21:00:30 +00:00
app:icon="@drawable/ic_save"
2019-11-12 17:32:30 +00:00
app:iconGravity="textStart"
tools:backgroundTint="@color/md_red_400" />
2019-08-01 08:27:05 +00:00
<Space
android:layout_width="match_parent"
android:layout_height="52dp" />
</LinearLayout>
2018-08-30 09:29:30 +00:00
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>