* Merge MainActivity and MainActivityTv * Merge AddServerFragment and TvAddServerFragment * Merge LoginFragment and TvLoginFragment * Add new focus effect * Add libraries to tv home * Fix home empty when navigating back on mobile * Add loading indicator to home fragment * Add empty LibraryFragment * Add focus outline to settings button * Use DiffCallback for updating home fragment * Visually upgrade MediaDetailFragment * Make all home items focusable in touch mode * Add new focus border to person item * Add LibraryFragment layout for TV (Whilst also making a clusterfuck of the navigation) * Add missing try-catch in HomeViewModel * Don't show CancellationException on AddServerFragment * Fix a few crashes plus errors
54 lines
2.1 KiB
XML
54 lines
2.1 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="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".fragments.LibraryFragment">
|
|
|
|
<include
|
|
android:id="@+id/error_layout"
|
|
layout="@layout/error_panel" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="12dp"
|
|
android:textAppearance="@style/TextAppearance.Material3.HeadlineMedium"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Movies" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/items_recycler_view"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:clipToPadding="false"
|
|
android:paddingHorizontal="12dp"
|
|
android:paddingTop="16dp"
|
|
android:scrollbars="none"
|
|
android:layout_marginTop="12dp"
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
|
app:spanCount="@integer/library_columns"
|
|
tools:itemCount="14"
|
|
tools:listitem="@layout/base_item">
|
|
<requestFocus/>
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/loading_indicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:indeterminate="true"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|