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.
61 lines
2.8 KiB
XML
61 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:nextFocusRight="@+id/dialog_positive_button"
|
|
android:background="@drawable/selector_search_result_item">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/station_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
|
android:textColor="@color/text_default"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Station Name" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/station_url"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
|
|
android:textColor="@color/text_lightweight"
|
|
app:layout_constraintEnd_toEndOf="@+id/station_name"
|
|
app:layout_constraintStart_toStartOf="@+id/station_name"
|
|
app:layout_constraintTop_toBottomOf="@+id/station_name"
|
|
tools:text="http://stream.url" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/station_bitrate"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.Material3.LabelLarge"
|
|
android:textColor="@color/text_lightweight"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="@+id/station_url"
|
|
app:layout_constraintStart_toStartOf="@+id/station_url"
|
|
app:layout_constraintTop_toBottomOf="@+id/station_url"
|
|
tools:text="128 kbps" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout> |