2021-04-30 17:20:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-07-29 15:16:08 +00:00
|
|
|
<FrameLayout
|
2021-04-30 17:20:15 +00:00
|
|
|
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"
|
2021-07-29 00:54:27 +00:00
|
|
|
|
|
|
|
android:id="@+id/home_root"
|
2021-04-30 17:20:15 +00:00
|
|
|
tools:context=".ui.home.HomeFragment">
|
2021-07-29 15:16:08 +00:00
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:visibility="visible"
|
|
|
|
tools:visibility="gone"
|
|
|
|
android:id="@+id/home_loading"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp">
|
|
|
|
</ProgressBar>
|
2021-07-29 13:39:57 +00:00
|
|
|
<LinearLayout
|
2021-07-29 15:16:08 +00:00
|
|
|
tools:visibility="gone"
|
|
|
|
android:id="@+id/home_loading_error"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:orientation="vertical"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:layout_gravity="center"
|
2021-04-30 17:20:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
|
|
|
android:visibility="visible"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:rippleColor="?attr/grayBackground"
|
|
|
|
android:textColor="?attr/grayBackground"
|
|
|
|
app:iconTint="?attr/grayBackground"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:strokeColor="?attr/grayBackground"
|
|
|
|
app:backgroundTint="?attr/textColor"
|
2021-07-29 13:39:57 +00:00
|
|
|
|
2021-07-29 15:16:08 +00:00
|
|
|
app:icon="@drawable/ic_baseline_autorenew_24"
|
|
|
|
app:iconSize="20dp"
|
|
|
|
android:text="@string/reload_error"
|
|
|
|
android:id="@+id/home_reload_connectionerror"
|
|
|
|
android:textSize="15sp"
|
|
|
|
app:cornerRadius="5dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:minWidth="200dp"
|
|
|
|
>
|
|
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:strokeColor="?attr/textColor"
|
|
|
|
android:backgroundTint="?attr/grayBackground"
|
|
|
|
app:rippleColor="?attr/textColor"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
app:iconTint="?attr/textColor"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_baseline_public_24"
|
|
|
|
app:iconSize="20dp"
|
|
|
|
android:text="@string/result_open_in_browser"
|
|
|
|
android:id="@+id/home_reload_connection_open_in_browser"
|
|
|
|
android:textSize="15sp"
|
|
|
|
app:cornerRadius="5dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:minWidth="200dp"
|
|
|
|
>
|
|
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
<TextView
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:id="@+id/result_error_text"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:id="@+id/home_loaded"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2021-07-30 14:09:57 +00:00
|
|
|
|
2021-07-29 13:39:57 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:layout_height="match_parent">
|
2021-07-29 13:39:57 +00:00
|
|
|
<ImageView
|
2021-07-29 15:16:08 +00:00
|
|
|
android:id="@+id/home_change_api"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_outline_settings_24"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:contentDescription="@string/home_change_provider">
|
2021-07-29 13:39:57 +00:00
|
|
|
</ImageView>
|
|
|
|
<LinearLayout
|
2021-07-29 15:16:08 +00:00
|
|
|
android:layout_marginTop="-20dp"
|
|
|
|
android:id="@+id/home_main_holder"
|
|
|
|
android:orientation="vertical"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
2021-07-29 15:16:08 +00:00
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:id="@+id/home_main_poster"
|
|
|
|
tools:src="@drawable/example_poster"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:layout_gravity="center"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:layout_width="150dp"
|
|
|
|
android:layout_height="212dp"
|
|
|
|
android:contentDescription="@string/home_main_poster">
|
2021-07-29 13:39:57 +00:00
|
|
|
</ImageView>
|
2021-07-29 15:16:08 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/home_main_text"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:layout_gravity="center"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:gravity="center"
|
|
|
|
tools:text="Perfect Run"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_margin="5dp"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:textSize="15sp"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<LinearLayout
|
2021-07-29 13:39:57 +00:00
|
|
|
android:layout_gravity="center"
|
2021-07-29 15:16:08 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginEnd="2dp"
|
|
|
|
android:id="@+id/home_reroll_prev"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:src="@drawable/ic_baseline_arrow_back_24"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:contentDescription="@string/home_next_random">
|
|
|
|
</ImageView>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:visibility="visible"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:cornerRadius="4dp"
|
|
|
|
android:id="@+id/home_main_play"
|
|
|
|
android:text="@string/home_play"
|
|
|
|
android:textStyle="bold"
|
2021-07-29 13:39:57 +00:00
|
|
|
|
2021-07-29 15:16:08 +00:00
|
|
|
app:rippleColor="?attr/grayBackground"
|
|
|
|
android:textColor="?attr/grayBackground"
|
|
|
|
app:iconTint="?attr/grayBackground"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:strokeColor="?attr/grayBackground"
|
|
|
|
app:backgroundTint="?attr/textColor"
|
|
|
|
app:icon="@drawable/ic_baseline_play_arrow_24"
|
|
|
|
android:layout_width="120dp"
|
|
|
|
android:layout_height="50dp">
|
|
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:visibility="visible"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:cornerRadius="4dp"
|
|
|
|
android:text="@string/home_info"
|
|
|
|
app:icon="@drawable/ic_outline_info_24"
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
|
|
android:id="@+id/home_main_info"
|
|
|
|
app:rippleColor="?attr/textColor"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
app:iconTint="?attr/textColor"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:backgroundTint="?attr/grayBackground"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:strokeColor="?attr/textColor"
|
|
|
|
android:layout_width="120dp"
|
|
|
|
android:layout_height="50dp">
|
|
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
<ImageView
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:id="@+id/home_reroll_next"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:src="@drawable/ic_baseline_arrow_forward_24"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:contentDescription="@string/home_next_random">
|
|
|
|
</ImageView>
|
|
|
|
</LinearLayout>
|
2021-07-29 13:39:57 +00:00
|
|
|
</LinearLayout>
|
2021-07-30 14:09:57 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/home_bookmarked_holder"
|
|
|
|
android:orientation="vertical"
|
2021-07-30 23:41:54 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
2021-07-30 14:09:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:id="@+id/home_bookmarked_child_more_info"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
2021-07-30 23:41:54 +00:00
|
|
|
android:id="@+id/home_bookmark_select"
|
2021-07-30 14:09:57 +00:00
|
|
|
android:src="@drawable/ic_baseline_filter_list_24"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:contentDescription="@string/filter_bookmarks">
|
|
|
|
</ImageView>
|
|
|
|
<TextView
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="40dp"
|
|
|
|
android:id="@+id/home_bookmarked_parent_item_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textSize="18sp"
|
|
|
|
android:textStyle="bold"
|
2021-07-30 23:41:54 +00:00
|
|
|
tools:text="Bookmarked"
|
2021-07-30 14:09:57 +00:00
|
|
|
/>
|
|
|
|
<ImageView
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:src="@drawable/ic_baseline_arrow_forward_24"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@string/home_more_info">
|
|
|
|
</ImageView>
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
android:id="@+id/home_bookmarked_child_recyclerview"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:listitem="@layout/home_result_grid"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2021-07-29 15:16:08 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/home_master_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/homepage_parent"
|
|
|
|
/>
|
2021-07-29 13:39:57 +00:00
|
|
|
</LinearLayout>
|
2021-07-29 15:16:08 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</FrameLayout>
|