2021-04-30 17:20:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-07-29 13:39:57 +00:00
|
|
|
<androidx.core.widget.NestedScrollView
|
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 13:39:57 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
2021-04-30 17:20:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-07-29 13:39:57 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/home_main_holder"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:id="@+id/home_main_poster"
|
|
|
|
tools:src="@drawable/example_poster"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="150dp"
|
|
|
|
android:layout_height="212dp"
|
|
|
|
android:contentDescription="@string/home_main_poster">
|
|
|
|
</ImageView>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/home_main_text"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
tools:text="Perfect Run"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_gravity="center"
|
|
|
|
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"
|
|
|
|
|
|
|
|
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>
|
|
|
|
</LinearLayout>
|
|
|
|
<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"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|