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

208 lines
9.8 KiB
XML
Raw Normal View History

2018-08-30 09:29:30 +00:00
<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:id="@+id/gradient_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-09-09 19:44:46 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/status_bar" />
</FrameLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.Toolbar
2018-07-27 13:07:33 +00:00
android:id="@+id/toolbar"
2018-09-09 19:44:46 +00:00
style="@style/Toolbar48"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
tools:ignore="UnusedAttribute">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<TextView
android:id="@+id/title"
fontPath="@string/circular_std_black"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-09-09 19:44:46 +00:00
android:layout_gravity="center"
android:gravity="center"
android:text="@string/action_tag_editor"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
tools:ignore="MissingPrefix" />
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
</androidx.appcompat.widget.Toolbar>
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-09-09 19:44:46 +00:00
android:orientation="horizontal">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<FrameLayout
android:id="@+id/image_container"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_weight="1"
app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="0.5">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-09-09 19:44:46 +00:00
android:scaleType="centerCrop"
android:transitionName="@string/transition_album_art"
tools:ignore="UnusedAttribute" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone" />
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
</FrameLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/md_white_1000"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2018-07-27 13:07:33 +00:00
<LinearLayout
android:id="@+id/editables"
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="match_parent"
2018-07-27 13:07:33 +00:00
android:orientation="vertical"
android:padding="8dp">
2018-09-09 19:44:46 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.textfield.TextInputLayout
2018-09-09 19:44:46 +00:00
android:id="@+id/album_title_container"
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"
app:boxBackgroundMode="outline"
app:boxCollapsedPaddingTop="16dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="?android:attr/textColorPrimary"
app:boxStrokeWidth="1dp"
app:hintEnabled="true">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/album_title"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-09 19:44:46 +00:00
android:background="@null"
2018-07-27 13:07:33 +00:00
android:hint="@string/album"
android:inputType="text|textCapWords"
android:maxLines="1"
2018-09-09 19:44:46 +00:00
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
2018-08-30 09:29:30 +00:00
</com.google.android.material.textfield.TextInputLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.textfield.TextInputLayout
2018-09-09 19:44:46 +00:00
android:id="@+id/album_artist_container"
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:layout_marginTop="8dp"
app:boxBackgroundMode="outline"
app:boxCollapsedPaddingTop="16dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="?android:attr/textColorPrimary"
app:boxStrokeWidth="1dp"
app:hintEnabled="true">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<com.google.android.material.textfield.TextInputEditText
2018-07-27 13:07:33 +00:00
android:id="@+id/album_artist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-09 19:44:46 +00:00
android:background="@null"
2018-07-27 13:07:33 +00:00
android:hint="@string/album_artist"
android:inputType="text|textCapWords"
android:maxLines="1"
2018-09-09 19:44:46 +00:00
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
2018-08-30 09:29:30 +00:00
</com.google.android.material.textfield.TextInputLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.textfield.TextInputLayout
2018-09-09 19:44:46 +00:00
android:id="@+id/genre_container"
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:layout_marginTop="8dp"
app:boxBackgroundMode="outline"
app:boxCollapsedPaddingTop="16dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="?android:attr/textColorPrimary"
app:boxStrokeWidth="1dp"
app:hintEnabled="true">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<com.google.android.material.textfield.TextInputEditText
2018-07-27 13:07:33 +00:00
android:id="@+id/genre"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-09 19:44:46 +00:00
android:background="@null"
2018-07-27 13:07:33 +00:00
android:hint="@string/genre"
android:inputType="text|textCapWords"
android:maxLines="1"
2018-09-09 19:44:46 +00:00
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
2018-08-30 09:29:30 +00:00
</com.google.android.material.textfield.TextInputLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.textfield.TextInputLayout
2018-09-09 19:44:46 +00:00
android:id="@+id/year_container"
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:layout_marginTop="8dp"
app:boxBackgroundMode="outline"
app:boxCollapsedPaddingTop="16dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="?android:attr/textColorPrimary"
app:boxStrokeWidth="1dp"
app:hintEnabled="true">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.textfield.TextInputEditText
2018-07-27 13:07:33 +00:00
android:id="@+id/year"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-09 19:44:46 +00:00
android:background="@null"
2018-07-27 13:07:33 +00:00
android:hint="@string/year"
android:inputType="text|number"
android:maxLines="1"
2018-09-09 19:44:46 +00:00
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
2018-08-30 09:29:30 +00:00
</com.google.android.material.textfield.TextInputLayout>
2018-07-27 13:07:33 +00:00
</LinearLayout>
2018-09-09 19:44:46 +00:00
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</LinearLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
2018-07-27 13:07:33 +00:00
android:id="@+id/save_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
app:srcCompat="@drawable/ic_save_white_24dp" />
2018-08-30 09:29:30 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>