<?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"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.google.android.material.card.MaterialCardView
            android:id="@+id/buyProContainer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            app:cardCornerRadius="8dp"
            app:cardUseCompatPadding="true">

            <androidx.constraintlayout.widget.ConstraintLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="4dp">

                <androidx.appcompat.widget.AppCompatImageView
                    android:id="@+id/diamondIcon"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:paddingStart="16dp"
                    android:paddingTop="8dp"
                    android:paddingEnd="16dp"
                    android:paddingBottom="12dp"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    app:srcCompat="@drawable/ic_diamond_stone_white_24dp"
                    app:tint="?colorOnSecondary" />

                <com.google.android.material.textview.MaterialTextView
                    android:id="@+id/title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingStart="16dp"
                    android:paddingEnd="16dp"
                    android:text="@string/retro_music_pro"
                    android:textAppearance="@style/TextViewSubtitle1"
                    android:textStyle="bold"
                    app:layout_constraintTop_toBottomOf="@id/diamondIcon" />

                <com.google.android.material.textview.MaterialTextView
                    android:id="@+id/text"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingStart="16dp"
                    android:paddingTop="4dp"
                    android:paddingEnd="16dp"
                    android:paddingBottom="12dp"
                    android:text="@string/pro_summary"
                    app:layout_constraintTop_toBottomOf="@id/title" />

                <View
                    android:id="@+id/divider"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="16dp"
                    android:layout_marginEnd="16dp"
                    android:background="?attr/dividerHorizontal"
                    app:layout_constraintTop_toBottomOf="@id/text" />

                <com.google.android.material.button.MaterialButton
                    android:id="@+id/buyPremium"
                    style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="start|center_vertical"
                    android:text="@string/buy_now"
                    android:textAllCaps="false"
                    android:textColor="?colorAccent"
                    android:textStyle="bold"
                    app:backgroundTint="?attr/colorSurface"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toBottomOf="@id/divider" />
            </androidx.constraintlayout.widget.ConstraintLayout>
        </com.google.android.material.card.MaterialCardView>

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/generalSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_theme_palette_white_24dp"
            app:settingListItemIconColor="@color/md_blue_A400"
            app:settingListItemText="@string/general_settings_summary"
            app:settingListItemTitle="@string/general_settings_title" />

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/nowPlayingSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_play_circle_filled_white_24dp"
            app:settingListItemIconColor="@color/md_red_A400"
            app:settingListItemText="@string/now_playing_summary"
            app:settingListItemTitle="@string/now_playing" />

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/audioSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_volume_up_white_24dp"
            app:settingListItemIconColor="@color/md_deep_purple_A400"
            app:settingListItemText="@string/audio_settings_summary"
            app:settingListItemTitle="@string/pref_header_audio" />

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/personalizeSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_hdr_strong_white_24dp"
            app:settingListItemIconColor="@color/md_teal_A400"
            app:settingListItemText="@string/personalize_settings_summary"
            app:settingListItemTitle="@string/personalize" />


        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/imageSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_image_white_24dp"
            app:settingListItemIconColor="@color/md_deep_orange_A400"
            app:settingListItemText="@string/image_settings_summary"
            app:settingListItemTitle="@string/pref_header_images" />

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/notificationSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_notifications_active_white_24dp"
            app:settingListItemIconColor="@color/md_yellow_A400"
            app:settingListItemText="@string/notification_settings_summary"
            app:settingListItemTitle="@string/notification" />

        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/otherSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_notifications_active_white_24dp"
            app:settingListItemIconColor="@color/md_indigo_A400"
            app:settingListItemText="@string/other_settings_summary"
            app:settingListItemTitle="@string/others" />


        <code.name.monkey.retromusic.views.SettingListItemView
            android:id="@+id/aboutSettings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:settingListItemIcon="@drawable/ic_info_outline_white_24dp"
            app:settingListItemIconColor="@color/md_light_green_A400"
            app:settingListItemText="@string/about_settings_summary"
            app:settingListItemTitle="@string/action_about" />

    </LinearLayout>
</androidx.core.widget.NestedScrollView>