mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-22 22:01:02 +00:00
146 lines
6.1 KiB
XML
146 lines
6.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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"
|
|
tools:context=".settings.SettingsAnimeActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsAnimeLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="32dp"
|
|
app:cardBackgroundColor="@color/nav_bg_inv"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/animeSettingsBack"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:background="@color/nav_bg_inv"
|
|
android:padding="16dp"
|
|
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="32dp"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/anime"
|
|
android:textSize="28sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="96dp"
|
|
android:layout_height="96dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:padding="24dp"
|
|
app:srcCompat="@drawable/ic_round_movie_filter_24"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:alpha="0.58"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/default_ep_view" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="@color/nav_bg_inv"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/settingsEpList"
|
|
android:layout_width="48dp"
|
|
android:layout_height="64dp"
|
|
android:alpha="0.33"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:src="@drawable/ic_round_view_list_24"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription,SpeakableTextPresentCheck,ImageContrastCheck,DuplicateSpeakableTextCheck" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="@color/nav_bg_inv"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/settingsEpGrid"
|
|
android:layout_width="48dp"
|
|
android:layout_height="64dp"
|
|
android:alpha="0.33"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleX="-1"
|
|
android:src="@drawable/ic_round_grid_view_24"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription,SpeakableTextPresentCheck,ImageContrastCheck" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="@color/nav_bg_inv"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/settingsEpCompact"
|
|
android:layout_width="48dp"
|
|
android:layout_height="64dp"
|
|
android:alpha="0.33"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:src="@drawable/ic_round_view_comfy_24"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription,SpeakableTextPresentCheck,ImageContrastCheck,DuplicateSpeakableTextCheck" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
|
|
<ani.dantotsu.FadingEdgeRecyclerView
|
|
android:id="@+id/settingsRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:nestedScrollingEnabled="false"
|
|
android:requiresFadingEdge="vertical"
|
|
tools:itemCount="5"
|
|
tools:listitem="@layout/item_settings" />
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView> |