forked from recloudstream/cloudstream
result_sync ui
This commit is contained in:
parent
f4dd6c9c84
commit
c11a96a3e1
2 changed files with 200 additions and 71 deletions
|
@ -79,7 +79,7 @@
|
||||||
android:layout_gravity="end|center_vertical"
|
android:layout_gravity="end|center_vertical"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
|
<!--
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
style="@style/SyncButton"
|
style="@style/SyncButton"
|
||||||
|
|
||||||
android:text="@string/type_dropped" />
|
android:text="@string/type_dropped" />-->
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
android:text="Rated:"
|
android:text="Rated:"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
<!--
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:text="7/10"
|
android:text="7/10"
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginStart="0dp"
|
android:layout_marginStart="0dp"
|
||||||
style="@style/BlackButton" />
|
style="@style/BlackButton" />-->
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<com.google.android.material.slider.Slider
|
<com.google.android.material.slider.Slider
|
||||||
|
@ -196,10 +196,12 @@
|
||||||
android:valueTo="10"
|
android:valueTo="10"
|
||||||
android:value="4"
|
android:value="4"
|
||||||
android:stepSize="1"
|
android:stepSize="1"
|
||||||
android:paddingStart="-10dp"
|
app:tickVisible="false"
|
||||||
android:paddingEnd="-10dp"
|
android:layout_marginStart="-5dp"
|
||||||
|
android:layout_marginEnd="-5dp"
|
||||||
android:layout_width="match_parent"
|
app:thumbRadius="10dp"
|
||||||
|
app:labelStyle="@style/BlackLabel"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
|
@ -225,10 +227,132 @@
|
||||||
android:contentDescription="@string/home_more_info" />
|
android:contentDescription="@string/home_more_info" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
<TextView 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"
|
||||||
|
style="@style/AppTextViewStyle"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="@color/text_selection_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:paddingEnd="7dip"
|
||||||
|
android:text="@string/type_watching"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||||||
|
tools:drawableTint="?attr/textColor"
|
||||||
|
android:drawablePadding="20dp"
|
||||||
|
app:drawableTint="@color/check_selection_color"
|
||||||
|
app:drawableStartCompat="@drawable/ic_baseline_check_24" />
|
||||||
|
<TextView 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"
|
||||||
|
style="@style/AppTextViewStyle"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="@color/text_selection_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:paddingEnd="7dip"
|
||||||
|
android:text="@string/type_on_hold"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||||||
|
tools:drawableTint="?attr/textColor"
|
||||||
|
android:drawablePadding="20dp"
|
||||||
|
app:drawableTint="@color/check_selection_color"
|
||||||
|
app:drawableStartCompat="@drawable/ic_baseline_check_24" />
|
||||||
|
<TextView 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"
|
||||||
|
style="@style/AppTextViewStyle"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="@color/text_selection_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:paddingEnd="7dip"
|
||||||
|
android:text="@string/type_completed"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||||||
|
tools:drawableTint="?attr/textColor"
|
||||||
|
android:drawablePadding="20dp"
|
||||||
|
app:drawableTint="@color/check_selection_color"
|
||||||
|
app:drawableStartCompat="@drawable/ic_baseline_check_24" />
|
||||||
|
<TextView 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"
|
||||||
|
style="@style/AppTextViewStyle"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="@color/text_selection_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:paddingEnd="7dip"
|
||||||
|
android:text="@string/type_plan_to_watch"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||||||
|
tools:drawableTint="?attr/textColor"
|
||||||
|
android:drawablePadding="20dp"
|
||||||
|
app:drawableTint="@color/check_selection_color"
|
||||||
|
app:drawableStartCompat="@drawable/ic_baseline_check_24" />
|
||||||
|
<TextView 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"
|
||||||
|
style="@style/AppTextViewStyle"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="@color/text_selection_color"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:paddingEnd="7dip"
|
||||||
|
android:text="@string/type_dropped"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||||||
|
tools:drawableTint="?attr/textColor"
|
||||||
|
android:drawablePadding="20dp"
|
||||||
|
app:drawableTint="@color/check_selection_color"
|
||||||
|
app:drawableStartCompat="@drawable/ic_baseline_check_24" />
|
||||||
|
|
||||||
|
<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" />
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
style="@style/SyncButton"
|
style="@style/BlackButton"
|
||||||
app:icon="@drawable/baseline_sync_24"
|
app:icon="@drawable/baseline_sync_24"
|
||||||
android:text="@string/upload_sync" />
|
android:text="@string/upload_sync" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -365,6 +365,11 @@
|
||||||
<item name="rippleColor">?attr/primaryBlackBackground</item>
|
<item name="rippleColor">?attr/primaryBlackBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="BlackLabel" parent="@style/Widget.MaterialComponents.Tooltip">
|
||||||
|
<item name="backgroundTint">?attr/iconGrayBackground</item>
|
||||||
|
<item name="android:textColor">?attr/textColor</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="BlackButton" parent="NiceButton">
|
<style name="BlackButton" parent="NiceButton">
|
||||||
<item name="strokeColor">?attr/textColor</item>
|
<item name="strokeColor">?attr/textColor</item>
|
||||||
<item name="backgroundTint">?attr/iconGrayBackground</item>
|
<item name="backgroundTint">?attr/iconGrayBackground</item>
|
||||||
|
|
Loading…
Reference in a new issue