cloudstream/app/src/main/res/layout/result_sync.xml

325 lines
14 KiB
XML
Raw Normal View History

2022-02-14 21:12:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-02-15 21:31:56 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-02-14 21:12:06 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2022-02-15 21:31:56 +00:00
2022-02-14 21:12:06 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-04-02 01:38:55 +00:00
<ScrollView
android:id="@+id/result_sync_holder"
tools:visibility="visible"
2022-04-01 20:05:34 +00:00
android:visibility="gone"
2022-02-15 21:31:56 +00:00
android:padding="16dp"
2022-02-14 21:12:06 +00:00
android:layout_width="match_parent"
2022-04-02 01:38:55 +00:00
android:layout_height="wrap_content">
2022-02-15 21:31:56 +00:00
<LinearLayout
2022-04-02 01:38:55 +00:00
android:orientation="vertical"
2022-02-15 21:31:56 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
2022-04-02 22:06:35 +00:00
android:id="@+id/result_sync_names"
2022-04-02 01:38:55 +00:00
android:textStyle="bold"
android:textSize="16sp"
android:layout_marginBottom="10dp"
android:text="MyAnimeList, AniList"
2022-02-15 21:31:56 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2022-04-02 01:38:55 +00:00
<LinearLayout
android:visibility="visible"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/result_sync_sub_episode"
android:padding="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/baseline_remove_24"
android:layout_gravity="end|center_vertical"
app:tint="?attr/textColor" />
<EditText
2022-06-09 13:50:55 +00:00
android:textColorHint="?attr/grayTextColor"
2022-04-02 01:38:55 +00:00
android:id="@+id/result_sync_current_episodes"
style="@style/AppEditStyle"
tools:hint="20"
android:textSize="20sp"
android:inputType="number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:ignore="LabelFor" />
<TextView
android:id="@+id/result_sync_max_episodes"
android:layout_gravity="center_vertical"
android:paddingBottom="1dp"
android:textSize="20sp"
android:textColor="?attr/textColor"
tools:text="30"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/result_sync_add_episode"
android:padding="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_add_24"
android:layout_gravity="end|center_vertical"
app:tint="?attr/textColor" />
</LinearLayout>
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/result_sync_episodes"
2022-02-15 21:31:56 +00:00
android:padding="10dp"
2022-04-02 01:38:55 +00:00
android:layout_width="match_parent"
android:layout_height="20dp"
android:progress="0"
android:indeterminate="false"
android:progressBackgroundTint="?attr/colorPrimary"
style="?android:attr/progressBarStyleHorizontal"
android:max="100"
2022-02-15 21:31:56 +00:00
android:layout_gravity="end|center_vertical"
2022-04-02 01:38:55 +00:00
tools:visibility="visible" />
<!--
<LinearLayout
android:layout_marginBottom="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_gravity="center_vertical"
android:padding="10dp"
android:textSize="17sp"
android:textColor="?attr/textColor"
android:text="Status:"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.google.android.material.button.MaterialButton
android:layout_height="30dp"
android:text="Watching"
android:minWidth="0dp"
android:layout_width="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
style="@style/BlackButton" />
</LinearLayout>
<GridLayout
android:orientation="horizontal"
android:columnCount="2"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:id="@+id/sync_completed"
android:nextFocusRight="@id/sync_on_hold"
android:nextFocusDown="@id/sync_plan_to_watch"
android:layout_row="0"
android:layout_column="0"
android:text="@string/type_completed"
style="@style/SyncButton" />
<com.google.android.material.button.MaterialButton
android:id="@+id/sync_on_hold"
android:nextFocusDown="@id/sync_watching"
android:nextFocusLeft="@id/sync_completed"
android:layout_row="0"
android:layout_column="1"
style="@style/SyncButton"
android:text="@string/type_on_hold" />
<com.google.android.material.button.MaterialButton
android:id="@+id/sync_plan_to_watch"
android:nextFocusRight="@id/sync_plan_to_watch"
android:nextFocusDown="@id/sync_dropped"
android:nextFocusUp="@id/sync_completed"
android:layout_row="1"
android:layout_column="0"
android:text="@string/type_plan_to_watch"
style="@style/SyncButton"
/>
<com.google.android.material.button.MaterialButton
android:id="@+id/sync_watching"
android:nextFocusLeft="@id/sync_plan_to_watch"
android:nextFocusDown="@id/sync_dropped"
android:nextFocusUp="@id/sync_on_hold"
android:layout_row="1"
android:layout_column="1"
style="@style/SyncButton"
android:text="@string/type_watching" />
</GridLayout>
2022-02-15 21:31:56 +00:00
2022-04-02 01:38:55 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/sync_dropped"
android:nextFocusUp="@id/sync_plan_to_watch"
2022-02-14 21:12:06 +00:00
2022-04-02 01:38:55 +00:00
android:layout_width="match_parent"
style="@style/SyncButton"
2022-02-15 21:31:56 +00:00
2022-04-02 01:38:55 +00:00
android:text="@string/type_dropped" />-->
2022-02-15 21:31:56 +00:00
2022-04-02 01:38:55 +00:00
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_gravity="center_vertical"
android:padding="10dp"
android:textSize="17sp"
android:textColor="?attr/textColor"
android:text="@string/sync_score"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.google.android.material.button.MaterialButton
android:id="@+id/result_sync_score_text"
android:layout_height="30dp"
android:text="7/10"
android:minWidth="0dp"
android:layout_width="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="0dp"
style="@style/BlackButton" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/result_sync_rating"
android:valueFrom="0"
android:valueTo="10"
android:value="4"
android:stepSize="1"
app:tickVisible="false"
android:layout_marginStart="-5dp"
android:layout_marginEnd="-5dp"
app:thumbRadius="10dp"
app:labelStyle="@style/BlackLabel"
2022-02-15 21:31:56 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2022-04-02 01:38:55 +00:00
<FrameLayout
android:visibility="gone"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/home_parent_item_title"
style="@style/WatchHeaderText"
tools:text="Recommended" />
<ImageView
app:tint="?attr/textColor"
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" />
</FrameLayout>
<ListView
android:id="@+id/result_sync_check"
tools:listitem="@layout/sort_bottom_single_choice"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_rowWeight="1" />
2022-02-15 21:31:56 +00:00
2022-04-02 01:38:55 +00:00
<com.google.android.material.button.MaterialButton
android:visibility="gone"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
style="@style/WhiteButton"
android:text="@string/type_watching" />
2022-02-15 21:31:56 +00:00
2022-04-02 01:38:55 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/result_sync_set_score"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
style="@style/BlackButton"
app:icon="@drawable/baseline_sync_24"
android:text="@string/upload_sync" />
</LinearLayout>
</ScrollView>
2022-02-14 21:12:06 +00:00
2022-04-01 20:05:34 +00:00
<com.facebook.shimmer.ShimmerFrameLayout
2022-04-02 01:38:55 +00:00
tools:visibility="gone"
2022-04-01 20:05:34 +00:00
android:id="@+id/result_sync_loading_shimmer"
app:shimmer_base_alpha="0.2"
app:shimmer_highlight_alpha="0.3"
app:shimmer_duration="@integer/loading_time"
app:shimmer_auto_start="true"
android:padding="15dp"
2022-02-14 21:12:06 +00:00
android:layout_width="match_parent"
2022-04-01 20:05:34 +00:00
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<Space
android:layout_width="match_parent"
2022-04-02 01:38:55 +00:00
android:layout_height="30dp" />
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
<include layout="@layout/loading_line" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<Space
android:layout_width="match_parent"
2022-04-02 01:38:55 +00:00
android:layout_height="30dp" />
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<Space
android:layout_width="match_parent"
2022-04-02 01:38:55 +00:00
android:layout_height="30dp" />
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line_short" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<Space
android:layout_width="match_parent"
2022-04-02 01:38:55 +00:00
android:layout_height="30dp" />
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line" />
2022-04-02 01:38:55 +00:00
2022-04-01 20:05:34 +00:00
<include layout="@layout/loading_line" />
</LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
2022-02-15 21:31:56 +00:00
</FrameLayout>