mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 05:32:39 +02:00
feat(ui): use checkbox to indicate reordering station status
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- Focused (TV remote) states -->
|
||||
<item android:color="@color/list_card_stroke_focused" android:state_focused="true" />
|
||||
<!-- Default state -->
|
||||
<item android:color="@color/list_card_stroke_background" />
|
||||
</selector>
|
||||
@@ -61,6 +61,16 @@
|
||||
app:shapeAppearanceOverlay="@style/RoundedCorners"
|
||||
app:srcCompat="@drawable/ic_image_white_36dp" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/reorder_checkbox"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:foregroundTint="@color/icon_default"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/station_icon"
|
||||
app:layout_constraintStart_toEndOf="@+id/starred_icon"
|
||||
app:layout_constraintTop_toTopOf="@+id/station_icon" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/starred_icon"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -86,7 +96,7 @@
|
||||
android:textColor="@color/text_lightweight"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/station_icon"
|
||||
app:layout_constraintEnd_toStartOf="@+id/playback_button"
|
||||
app:layout_constraintStart_toEndOf="@+id/starred_icon"
|
||||
app:layout_constraintStart_toEndOf="@+id/reorder_checkbox"
|
||||
app:layout_constraintTop_toTopOf="@+id/station_icon"
|
||||
tools:text="@string/sample_text_station_name" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user