<?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">

	<androidx.constraintlayout.widget.ConstraintLayout
		android:layout_width="match_parent"
		android:layout_height="wrap_content">

		<androidx.constraintlayout.widget.Guideline
			android:id="@+id/guideline"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:orientation="vertical"
			app:layout_constraintGuide_percent="0.5" />

		<include
			android:id="@+id/card_update"
			layout="@layout/layout_app_update"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			android:layout_margin="@dimen/margin_normal"
			android:visibility="gone"
			app:layout_constraintEnd_toStartOf="@id/guideline"
			app:layout_constraintStart_toStartOf="parent"
			app:layout_constraintTop_toTopOf="parent"
			tools:visibility="visible" />

		<include
			android:id="@+id/layout_sync"
			layout="@layout/layout_synchronization"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			android:visibility="gone"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintStart_toEndOf="@id/guideline"
			app:layout_constraintTop_toTopOf="parent"
			tools:visibility="visible" />

		<org.koitharu.kotatsu.settings.tools.views.MemoryUsageView
			android:id="@+id/memory_usage_view"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			app:layout_constraintEnd_toStartOf="@id/guideline"
			app:layout_constraintStart_toStartOf="parent"
			app:layout_constraintTop_toBottomOf="@id/card_update" />

		<com.google.android.material.materialswitch.MaterialSwitch
			android:id="@+id/switch_incognito"
			style="?listItemTextViewStyle"
			android:layout_width="0dp"
			android:layout_height="?android:listPreferredItemHeightSmall"
			android:layout_marginTop="2dp"
			android:drawableStart="@drawable/ic_incognito"
			android:drawablePadding="?android:listPreferredItemPaddingStart"
			android:paddingStart="?android:listPreferredItemPaddingStart"
			android:paddingEnd="?android:listPreferredItemPaddingEnd"
			android:text="@string/incognito_mode"
			android:textAppearance="?attr/textAppearanceButton"
			android:textColor="?attr/colorControlNormal"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintStart_toEndOf="@id/guideline"
			app:layout_constraintTop_toBottomOf="@id/layout_sync"
			app:layout_goneMarginTop="8dp" />

		<org.koitharu.kotatsu.base.ui.widgets.ListItemTextView
			android:id="@+id/button_downloads"
			android:layout_width="0dp"
			android:layout_height="?android:listPreferredItemHeightSmall"
			android:drawableStart="@drawable/ic_download"
			android:drawablePadding="?android:listPreferredItemPaddingStart"
			android:paddingStart="?android:listPreferredItemPaddingStart"
			android:paddingEnd="?android:listPreferredItemPaddingEnd"
			android:text="@string/downloads"
			android:textAppearance="?attr/textAppearanceButton"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintStart_toEndOf="@id/guideline"
			app:layout_constraintTop_toBottomOf="@id/switch_incognito" />

		<org.koitharu.kotatsu.base.ui.widgets.ListItemTextView
			android:id="@+id/button_settings"
			android:layout_width="0dp"
			android:layout_height="?android:listPreferredItemHeightSmall"
			android:drawableStart="@drawable/ic_settings"
			android:drawablePadding="?android:listPreferredItemPaddingStart"
			android:paddingStart="?android:listPreferredItemPaddingStart"
			android:paddingEnd="?android:listPreferredItemPaddingEnd"
			android:text="@string/settings"
			android:textAppearance="?attr/textAppearanceButton"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintStart_toEndOf="@id/guideline"
			app:layout_constraintTop_toBottomOf="@id/button_downloads" />

	</androidx.constraintlayout.widget.ConstraintLayout>

</androidx.core.widget.NestedScrollView>
