
Refactor the styling again to make all styles start with the Auxio prefix. Also try to phase out the usage of layout_width and layout_height in most places, since those can cause a lot of frustration if they aren't used in the layout they are expected in.
64 lines
No EOL
2.7 KiB
XML
64 lines
No EOL
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="loadingModel"
|
|
type="org.oxycblt.auxio.loading.LoadingViewModel" />
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/loading_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/spacing_large"
|
|
android:animateLayoutChanges="true"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/loading_circle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="@+id/loading_action_button"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/loading_error_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/spacing_small"
|
|
android:fontFamily="@font/inter_semibold"
|
|
android:textAlignment="center"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:visibility="invisible"
|
|
app:layout_constraintBottom_toTopOf="@+id/loading_action_button"
|
|
tools:text="No Music Found" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/loading_action_button"
|
|
style="@style/Widget.Auxio.Button.Primary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/spacing_insane"
|
|
android:paddingEnd="@dimen/spacing_insane"
|
|
android:text="@string/lbl_retry"
|
|
android:visibility="invisible"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</FrameLayout>
|
|
</layout> |