mirror of
https://github.com/Michatec/Radio.git
synced 2026-03-31 23:46:28 +02:00
* Implement initial Android TV support, including `LEANBACK_LAUNCHER` intent filter, hardware feature declarations, and television-specific layouts for the player, search results, and dialogs. * Add a splash/loading screen for the TV interface and a dedicated `SplashTheme`. * Improve DPAD navigation by adding `OnKeyListener` for station cards and allowing focus on internal elements. * Update `LayoutHolder` and `PlayerFragment` to handle TV layouts and add previous/next station navigation buttons. * Adjust `PreferencesHelper` to disable station editing by default on TV devices. * Update `androidx.media3` to v1.10.0, `work-runtime-ktx` to v2.11.2, and add `androidx.leanback` dependency. * Bump `versionCode` to 144 and `versionName` to 14.4. * Refactor `PlayerService` to simplify sleep timer cancellation logic. * Remove stale copyright headers and license comments from several Kotlin files.
43 lines
1.9 KiB
XML
43 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/card_add_new_station"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="24dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:stateListAnimator="@null"
|
|
app:backgroundTint="@color/list_card_background"
|
|
app:icon="@drawable/ic_add_24dp"
|
|
app:iconTint="@color/icon_default"
|
|
app:rippleColor="@color/list_card_stroke_background"
|
|
app:strokeColor="@color/list_card_stroke_background"
|
|
app:strokeWidth="3dp" />
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/card_settings"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="24dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:stateListAnimator="@null"
|
|
app:backgroundTint="@color/list_card_background"
|
|
app:icon="@drawable/ic_settings_24dp"
|
|
app:iconTint="@color/icon_default"
|
|
app:rippleColor="@color/list_card_stroke_background"
|
|
app:strokeColor="@color/list_card_stroke_background"
|
|
app:strokeWidth="3dp" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |