Migrate to material theming
Finally move the app from AppCompat the Material Bridge theme. This does a couple things: - Removes need for runtime styling of material widgets used before - Allows for a better dialog style [But only after a ton of tinkering and weird hacks] - Makes theming slightly easier [After all the dumb migration bugs and technicalities are fixed] I never want to do something like this again. UI styling on android is a nightmare.
This commit is contained in:
@@ -73,19 +73,18 @@
|
||||
app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/genre_image"
|
||||
tools:textColor="@color/control_color" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/genre_image" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/genre_shuffle_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Highlighted"
|
||||
android:onClick="@{() -> playbackModel.playGenre(genre, true)}"
|
||||
android:text="@string/label_shuffle"
|
||||
android:backgroundTint="?attr/colorPrimary"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/genre_play_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/genre_play_button"
|
||||
app:layout_constraintTop_toTopOf="@+id/genre_play_button"
|
||||
tools:backgroundTint="@color/control_color" />
|
||||
app:layout_constraintTop_toTopOf="@+id/genre_play_button" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/genre_duration"
|
||||
|
||||
Reference in New Issue
Block a user