fix: settings scrolling

This commit is contained in:
aayush262 2024-04-11 21:37:25 +05:30
parent 3619355cb4
commit b961701189
8 changed files with 559 additions and 506 deletions

View file

@ -1,13 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsAboutActivity">
<LinearLayout
android:id="@+id/settingsAboutLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
<TextView
android:id="@+id/settingsAboutTitle"
android:layout_width="match_parent"
@ -121,7 +127,8 @@
android:layout_height="48dp"
android:background="?android:attr/selectableItemBackground"
android:padding="16dp"
android:src="@drawable/ic_round_share_24" />
android:src="@drawable/ic_round_share_24"
tools:ignore="ContentDescription" />
</LinearLayout>
@ -192,3 +199,4 @@
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,13 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsAccountActivity">
<LinearLayout
android:id="@+id/settingsAccountsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
<TextView
android:id="@+id/settingsaccountTitle"
android:layout_width="match_parent"
@ -222,8 +228,8 @@
android:id="@+id/settingsImageSwitcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/discord_status_idle"
android:padding="16dp" />
android:padding="16dp"
android:src="@drawable/discord_status_idle" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/settingsDiscordAvatarContainer"
@ -267,3 +273,4 @@
app:drawableTint="?attr/colorPrimary" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
@ -197,3 +202,4 @@
app:thumbTint="@color/button_switch_track" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsCommonActivity">
<LinearLayout
android:id="@+id/settingsCommonLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -305,3 +310,4 @@
app:iconTint="?attr/colorPrimary" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsExtensionsActivity">
<LinearLayout
android:id="@+id/settingsExtensionsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -191,3 +196,4 @@
app:thumbTint="@color/button_switch_track" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsMangaActivity">
<LinearLayout
android:id="@+id/settingsMangaLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -143,6 +148,7 @@
app:iconPadding="16dp"
app:iconSize="24dp"
app:iconTint="?attr/colorPrimary" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/settingsIncludeMangaList"
android:layout_width="match_parent"
@ -162,3 +168,4 @@
app:thumbTint="@color/button_switch_track" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsNotificationActivity">
<LinearLayout
android:id="@+id/settingsNotificationsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -23,6 +28,7 @@
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
<Button
android:id="@+id/settingsSubscriptionsTime"
style="@style/Widget.Material3.Button.TextButton"
@ -163,3 +169,4 @@
app:thumbTint="@color/button_switch_track" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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.SettingsThemeActivity">
<LinearLayout
android:id="@+id/settingsThemeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -248,3 +253,4 @@
app:iconTint="?attr/colorPrimary" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>