PlayerAndroid/app/src/main/res/layout/fragment_main_settings.xml

455 lines
21 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-30 09:29:30 +00:00
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
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"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-04-20 10:05:31 +00:00
android:orientation="vertical"
tools:background="@color/md_grey_500">
2018-07-27 13:07:33 +00:00
2019-06-04 04:00:11 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/buyProContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="8dp"
2019-09-03 16:02:10 +00:00
app:cardElevation="0dp"
app:cardUseCompatPadding="true"
app:strokeColor="?dividerColor"
app:strokeWidth="1dp">
2019-06-04 04:00:11 +00:00
2019-06-05 08:17:45 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2019-06-04 04:00:11 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
2019-06-05 08:17:45 +00:00
android:id="@+id/titleContainer"
android:layout_width="0dp"
2019-06-04 04:00:11 +00:00
android:layout_height="wrap_content"
2019-06-05 08:17:45 +00:00
android:layout_weight="1"
android:orientation="vertical"
app:layout_constraintEnd_toStartOf="@+id/text3"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-06-04 04:00:11 +00:00
2019-06-05 08:17:45 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:id="@+id/text"
2019-06-04 04:00:11 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-05 08:17:45 +00:00
android:paddingStart="16dp"
android:paddingTop="16dp"
android:paddingEnd="0dp"
android:text="@string/upgrade_to_premium"
android:textAppearance="@style/TextViewOverline" />
2019-06-04 04:00:11 +00:00
2019-06-05 08:17:45 +00:00
<code.name.monkey.appthemehelper.common.views.ATEAccentTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="0dp"
android:paddingBottom="8dp"
android:text="@string/buy_pro"
android:textAppearance="@style/TextViewHeadline6"
2019-06-05 08:17:45 +00:00
android:textColor="@color/md_white_1000" />
2019-06-04 04:00:11 +00:00
<code.name.monkey.appthemehelper.common.views.BaselineGridTextView
2019-06-05 08:17:45 +00:00
android:id="@+id/text2"
2019-06-04 04:00:11 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-06-05 08:17:45 +00:00
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:text="@string/pro_summary"
android:textAppearance="@style/TextViewBody1"
2019-06-05 08:17:45 +00:00
android:textColor="@color/md_white_1000" />
2019-06-04 04:00:11 +00:00
</LinearLayout>
2019-06-05 08:17:45 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/text3"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/titleContainer"
app:srcCompat="@drawable/promotional" />
2019-06-05 08:17:45 +00:00
2019-06-04 04:00:11 +00:00
<com.google.android.material.button.MaterialButton
2019-06-05 08:17:45 +00:00
android:id="@+id/buyPremium"
2019-06-04 04:00:11 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-06-05 08:17:45 +00:00
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:text="@string/premium"
android:textAppearance="@style/TextViewNormal"
2019-06-05 08:17:45 +00:00
app:icon="@drawable/ic_diamond_stone_white_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-09-03 16:02:10 +00:00
app:layout_constraintTop_toBottomOf="@id/titleContainer"
tools:backgroundTint="@color/md_red_400" />
2019-06-05 08:17:45 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2019-06-04 04:00:11 +00:00
</com.google.android.material.card.MaterialCardView>
2018-09-23 10:04:43 +00:00
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/generalSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-07-27 13:07:33 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/general_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_blue_A400"
2018-07-27 13:07:33 +00:00
app:srcCompat="@drawable/ic_theme_palette_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/general_settings_title"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/general_settings_summary"
android:textAppearance="@style/TextViewNormal"
2018-07-27 13:07:33 +00:00
tools:text="Summary" />
</LinearLayout>
</LinearLayout>
2018-08-30 09:29:30 +00:00
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/nowPlayingSettings"
2018-08-30 09:29:30 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-08-30 09:29:30 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-08-30 09:29:30 +00:00
android:id="@+id/now_playing_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_red_A400"
2018-08-30 09:29:30 +00:00
app:srcCompat="@drawable/ic_play_circle_filled_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-08-30 09:29:30 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/now_playing"
android:textAppearance="@style/TextViewSubtitle1" />
2018-08-30 09:29:30 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/now_playing_summary"
android:textAppearance="@style/TextViewNormal" />
2018-08-30 09:29:30 +00:00
</LinearLayout>
</LinearLayout>
2018-07-27 13:07:33 +00:00
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/audioSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-07-27 13:07:33 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/audio_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_deep_purple_A400"
2018-07-27 13:07:33 +00:00
app:srcCompat="@drawable/ic_volume_up_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/pref_header_audio"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/audio_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
</LinearLayout>
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/personalizeSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-07-27 13:07:33 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-08-30 09:29:30 +00:00
android:id="@+id/personalize_settings_icon"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_teal_A400"
2018-07-27 13:07:33 +00:00
app:srcCompat="@drawable/ic_hdr_strong_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/personalize"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/personalize_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
</LinearLayout>
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/imageSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-07-27 13:07:33 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/image_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
2019-04-05 10:45:09 +00:00
app:iconBackgroundColor="@color/md_deep_orange_A400"
2018-07-27 13:07:33 +00:00
app:srcCompat="@drawable/ic_image_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/pref_header_images"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/image_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
</LinearLayout>
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/notificationSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
2019-02-17 18:03:12 +00:00
android:gravity="center_vertical"
2018-07-27 13:07:33 +00:00
android:minHeight="72dp"
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/notification_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_yellow_A400"
2018-07-27 13:07:33 +00:00
app:srcCompat="@drawable/ic_notifications_active_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/notification"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/notification_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
</LinearLayout>
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/otherSettings"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
android:gravity="center_vertical"
2019-04-20 10:05:31 +00:00
android:minHeight="72dp"
2018-07-27 13:07:33 +00:00
android:orientation="horizontal">
2019-02-17 18:03:12 +00:00
<code.name.monkey.retromusic.views.ColorIconsImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/other_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_indigo_A400"
2019-04-05 10:45:09 +00:00
app:srcCompat="@drawable/ic_testing_white_24dp" />
2018-07-27 13:07:33 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-09-23 10:04:43 +00:00
android:layout_gravity="center_vertical"
2019-02-17 18:03:12 +00:00
android:layout_marginStart="16dp"
2018-09-23 10:04:43 +00:00
android:gravity="center_vertical"
2019-02-17 18:03:12 +00:00
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/others"
android:textAppearance="@style/TextViewSubtitle1" />
2018-07-27 13:07:33 +00:00
2019-04-05 10:45:09 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:maxLines="4"
android:text="@string/other_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2019-04-05 10:45:09 +00:00
</LinearLayout>
</LinearLayout>
2019-04-20 10:05:31 +00:00
2019-04-05 10:45:09 +00:00
<LinearLayout
android:id="@+id/aboutSettings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?rectSelector"
android:gravity="center_vertical"
2019-04-20 10:05:31 +00:00
android:minHeight="72dp"
2019-04-05 10:45:09 +00:00
android:orientation="horizontal">
<code.name.monkey.retromusic.views.ColorIconsImageView
android:id="@+id/about_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:padding="10dp"
app:iconBackgroundColor="@color/md_light_green_A400"
2019-04-20 04:35:22 +00:00
app:srcCompat="@drawable/ic_info_outline_white_24dp" />
2019-04-05 10:45:09 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:gravity="center_vertical"
android:orientation="vertical">
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/action_about"
android:textAppearance="@style/TextViewSubtitle1" />
2019-04-05 10:45:09 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/about_settings_summary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
</LinearLayout>
</LinearLayout>
2018-08-30 09:29:30 +00:00
</androidx.core.widget.NestedScrollView>