mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 04:12:40 +02:00
46ebf21c06
* 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.
57 lines
2.6 KiB
XML
57 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="800dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="24dp">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/dialog_message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dialog_error_message_default"
|
|
android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
|
|
android:textColor="@color/text_default"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="@string/dialog_error_message_default" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/dialog_details_link"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:padding="8dp"
|
|
android:text="@string/dialog_generic_details_button"
|
|
android:textAppearance="@style/TextAppearance.Material3.LabelLarge"
|
|
android:textColor="@color/text_default"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/dialog_message"
|
|
tools:text="@string/dialog_generic_details_button" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/dialog_details"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:scrollbars="vertical"
|
|
android:text="@string/dialog_opml_import_details_default"
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
|
|
android:textColor="@color/text_default"
|
|
android:textIsSelectable="true"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/dialog_details_link"
|
|
tools:text="@string/dialog_opml_import_details_default" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |