513 lines
20 KiB
XML
513 lines
20 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.SettingsActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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/settingsBack"
|
|
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="wrap_content"
|
|
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/settings"
|
|
android:textSize="28sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/settingsLogo"
|
|
android:layout_width="96dp"
|
|
android:layout_height="96dp"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
app:srcCompat="@drawable/anim_splash"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:animateLayoutChanges="true"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
tools:ignore="ContentDescription">
|
|
|
|
<!--account-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_round_person_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/accounts"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/accounts_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--theme-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsTheme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_palette"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/theme"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/theme_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--extentions-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsExtension"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
android:scaleX="0.92"
|
|
android:scaleY="0.92"
|
|
app:srcCompat="@drawable/ic_extension"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/extensions"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/extensions_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--Common-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsCommon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_lightbulb_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/common"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/common_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--Notification-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsNotification"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_round_notifications_none_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/notifications"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/notifications_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--Anime-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsAnime"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_round_movie_filter_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/anime"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/anime_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--Manga-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsManga"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_round_import_contacts_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/manga"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/manga_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!--about-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settingsAbout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:gravity="center_vertical|start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="24dp"
|
|
app:srcCompat="@drawable/ic_round_info_24"
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="44sp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/about"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.66"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/about_desc"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:ellipsize="end"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:maxLines="3"
|
|
android:text="@string/donate_desc"
|
|
android:textAlignment="center"
|
|
tools:ignore="TextContrastCheck" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/settingBuyMeCoffee"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:srcCompat="@drawable/ic_bmc_button"
|
|
tools:ignore="ContentDescription" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:alpha="0.58"
|
|
android:ellipsize="end"
|
|
android:maxLines="3"
|
|
android:text="@string/donate_goal"
|
|
android:textAlignment="center"
|
|
tools:ignore="TextContrastCheck" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:alpha="0.5"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/loginDiscord"
|
|
android:layout_width="48dp"
|
|
android:layout_height="64dp"
|
|
android:layout_margin="8dp"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_discord"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
android:id="@+id/loginGithub"
|
|
android:layout_width="48dp"
|
|
android:layout_height="64dp"
|
|
android:layout_margin="8dp"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_github"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
android:id="@+id/loginTelegram"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_margin="8dp"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_telegram"
|
|
app:tint="?attr/colorOnBackground"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/settingsVersion"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="64dp"
|
|
android:alpha="0.58"
|
|
android:ellipsize="end"
|
|
android:maxLines="3"
|
|
android:text="@string/version_current"
|
|
android:textAlignment="center"
|
|
tools:ignore="TextContrastCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|