2022-01-24 20:39:22 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-12-28 11:51:55 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/home_root"
|
|
|
|
android:layout_width="match_parent"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".ui.home.HomeFragment">
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2023-08-12 19:20:51 +00:00
|
|
|
|
2022-01-24 20:39:22 +00:00
|
|
|
<FrameLayout
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_loading"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginStart="@dimen/navbar_width"
|
|
|
|
android:visibility="gone"
|
2023-08-12 19:20:51 +00:00
|
|
|
tools:visibility="visible">
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<ProgressBar
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="gone" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<com.facebook.shimmer.ShimmerFrameLayout
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_loading_shimmer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="40dp"
|
|
|
|
app:shimmer_auto_start="true"
|
|
|
|
app:shimmer_base_alpha="0.2"
|
|
|
|
app:shimmer_duration="@integer/loading_time"
|
|
|
|
app:shimmer_highlight_alpha="0.3">
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-01-24 20:39:22 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_height="wrap_content"
|
2022-01-24 20:39:22 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
<FrameLayout
|
2022-01-24 20:39:22 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:orientation="horizontal">
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="125dp"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="@dimen/loading_margin"
|
|
|
|
android:background="@color/grayShimmer"
|
|
|
|
android:translationX="-164dp"
|
|
|
|
app:cardCornerRadius="@dimen/loading_radius" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="148dp"
|
|
|
|
android:layout_height="234dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="@dimen/loading_margin"
|
|
|
|
android:background="@color/grayShimmer"
|
|
|
|
app:cardCornerRadius="@dimen/loading_radius" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="125dp"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="@dimen/loading_margin"
|
|
|
|
android:background="@color/grayShimmer"
|
|
|
|
android:translationX="164dp"
|
|
|
|
app:cardCornerRadius="@dimen/loading_radius" />
|
2022-01-24 20:39:22 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<include layout="@layout/loading_line_short_center" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/result_padding"
|
|
|
|
android:layout_marginTop="@dimen/result_padding"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_marginEnd="@dimen/result_padding"
|
|
|
|
android:orientation="vertical">
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<include layout="@layout/loading_list" />
|
|
|
|
|
|
|
|
<include layout="@layout/loading_list" />
|
|
|
|
|
|
|
|
<include layout="@layout/loading_list" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.facebook.shimmer.ShimmerFrameLayout>
|
|
|
|
|
2023-08-12 19:20:51 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/player_button_tv_attr"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/home_change_api"
|
|
|
|
style="@style/RegularButtonTV"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="0dp"
|
|
|
|
android:layout_marginEnd="0dp"
|
|
|
|
android:background="@drawable/player_button_tv_attr_no_bg"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
2023-09-21 20:50:31 +00:00
|
|
|
android:nextFocusRight="@id/home_preview_search_button"
|
|
|
|
android:nextFocusDown="@id/home_preview_play_btt" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/home_preview_search_button"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@drawable/player_button_tv_attr_no_bg"
|
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/search"
|
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusLeft="@id/home_change_api"
|
|
|
|
android:nextFocusRight="@id/home_switch_account"
|
|
|
|
android:nextFocusDown="@id/home_preview_info_btt"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:src="@drawable/search_icon"
|
|
|
|
android:tag="@string/tv_no_focus_tag"
|
|
|
|
app:tint="@color/player_on_button_tv_attr" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<ImageView
|
2023-08-12 19:20:51 +00:00
|
|
|
android:id="@+id/home_switch_account"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@drawable/player_button_tv_attr_no_bg"
|
|
|
|
android:contentDescription="@string/account"
|
2023-10-23 16:38:53 +00:00
|
|
|
android:focusable="true"
|
2023-09-21 20:50:31 +00:00
|
|
|
android:nextFocusLeft="@id/home_preview_search_button"
|
|
|
|
android:nextFocusRight="@id/home_switch_account"
|
|
|
|
android:nextFocusDown="@id/home_change_api"
|
2023-08-12 19:20:51 +00:00
|
|
|
|
|
|
|
android:padding="10dp"
|
|
|
|
android:src="@drawable/ic_outline_account_circle_24"
|
|
|
|
android:tag="@string/tv_no_focus_tag"
|
|
|
|
app:tint="@color/player_on_button_tv_attr" />
|
|
|
|
</LinearLayout>
|
2022-01-24 20:39:22 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_loading_error"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="@dimen/navbar_width"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="gone">
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_reload_connectionerror"
|
|
|
|
style="@style/WhiteButton"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="wrap_content"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:minWidth="200dp"
|
|
|
|
android:text="@string/reload_error"
|
|
|
|
app:icon="@drawable/ic_baseline_autorenew_24" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_reload_connection_open_in_browser"
|
|
|
|
style="@style/BlackButton"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_width="wrap_content"
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:minWidth="200dp"
|
|
|
|
android:text="@string/result_open_in_browser"
|
|
|
|
app:icon="@drawable/ic_baseline_public_24" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<TextView
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/result_error_text"
|
2022-01-24 20:39:22 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-12-28 11:51:55 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?attr/textColor" />
|
|
|
|
</LinearLayout>
|
2022-01-24 20:39:22 +00:00
|
|
|
|
2022-12-28 11:51:55 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/home_master_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:descendantFocusability="afterDescendants"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
2023-08-02 19:00:04 +00:00
|
|
|
android:nextFocusUp="@id/home_bookmarked_child_recyclerview"
|
2022-12-28 11:51:55 +00:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2023-08-12 19:20:51 +00:00
|
|
|
tools:listitem="@layout/homepage_parent_tv"
|
|
|
|
tools:visibility="gone" />
|
2022-01-24 20:39:22 +00:00
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
2022-12-28 11:51:55 +00:00
|
|
|
android:id="@+id/home_api_fab"
|
|
|
|
style="@style/ExtendedFloatingActionButton"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:icon="@drawable/ic_baseline_filter_list_24"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible" />
|
2023-07-13 21:18:37 +00:00
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
android:id="@+id/home_random"
|
|
|
|
style="@style/ExtendedFloatingActionButton"
|
|
|
|
android:layout_gravity="bottom|start"
|
|
|
|
android:text="@string/home_random"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:icon="@drawable/ic_baseline_play_arrow_24"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible" />
|
2022-01-24 20:39:22 +00:00
|
|
|
</FrameLayout>
|