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

181 lines
8.9 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"
2020-08-13 08:24:36 +00:00
xmlns:tools="http://schemas.android.com/tools"
2020-01-05 20:25:55 +00:00
android:id="@+id/scrollView"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-01-05 20:25:55 +00:00
android:layout_height="wrap_content"
android:transitionGroup="true">
2018-07-27 13:07:33 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
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"
2020-09-07 09:31:27 +00:00
style="@style/MaterialCardViewStroke"
2019-06-04 04:00:11 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-29 17:49:31 +00:00
android:layout_margin="4dp"
2020-09-07 09:31:27 +00:00
app:cardCornerRadius="8dp">
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"
2019-10-29 17:59:53 +00:00
android:orientation="vertical"
android:padding="4dp">
2019-06-04 04:00:11 +00:00
2019-10-29 17:49:31 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/diamondIcon"
android:layout_width="wrap_content"
2019-06-04 04:00:11 +00:00
android:layout_height="wrap_content"
2019-10-29 17:49:31 +00:00
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
2019-06-05 08:17:45 +00:00
app:layout_constraintStart_toStartOf="parent"
2019-10-29 17:49:31 +00:00
app:layout_constraintTop_toTopOf="parent"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_diamond_stone"
2020-08-13 08:24:36 +00:00
app:tint="?colorOnSecondary"
tools:tint="?attr/colorAccent" />
2019-06-04 04:00:11 +00:00
2019-10-29 17:49:31 +00:00
<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"
2020-08-13 08:24:36 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-10-29 17:49:31 +00:00
app:layout_constraintTop_toBottomOf="@id/diamondIcon" />
2019-06-04 04:00:11 +00:00
2019-10-29 17:49:31 +00:00
<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"
2019-10-29 17:59:53 +00:00
android:paddingBottom="12dp"
2019-10-29 17:49:31 +00:00
android:text="@string/pro_summary"
2020-08-13 08:24:36 +00:00
android:textAppearance="@style/TextViewBody2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-10-29 17:49:31 +00:00
app:layout_constraintTop_toBottomOf="@id/title" />
2019-06-05 08:17:45 +00:00
2019-10-29 17:59:53 +00:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2019-12-05 18:18:54 +00:00
android:background="?attr/dividerHorizontal"
2019-10-29 17:59:53 +00:00
app:layout_constraintTop_toBottomOf="@id/text" />
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-10-29 17:49:31 +00:00
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
2019-10-29 17:59:53 +00:00
android:layout_width="0dp"
2019-06-04 04:00:11 +00:00
android:layout_height="wrap_content"
2019-10-29 17:59:53 +00:00
android:gravity="start|center_vertical"
2019-10-29 17:49:31 +00:00
android:text="@string/buy_now"
android:textAllCaps="false"
2020-08-13 08:24:36 +00:00
android:textAppearance="@style/TextViewButton"
2019-10-29 17:49:31 +00:00
android:textColor="?colorAccent"
android:textStyle="bold"
2019-12-01 15:27:01 +00:00
app:backgroundTint="?attr/colorSurface"
2019-06-05 08:17:45 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2019-10-29 17:59:53 +00:00
app:layout_constraintEnd_toEndOf="parent"
2019-06-05 08:17:45 +00:00
app:layout_constraintStart_toStartOf="parent"
2019-10-29 17:59:53 +00:00
app:layout_constraintTop_toBottomOf="@id/divider" />
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>
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_theme_palette"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_blue_A400"
app:settingListItemText="@string/general_settings_summary"
app:settingListItemTitle="@string/general_settings_title" />
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_play_circle_filled"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_red_A400"
app:settingListItemText="@string/now_playing_summary"
app:settingListItemTitle="@string/now_playing" />
2018-08-30 09:29:30 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_volume_up"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_deep_purple_A400"
app:settingListItemText="@string/audio_settings_summary"
app:settingListItemTitle="@string/pref_header_audio" />
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_hdr_strong"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_teal_A400"
app:settingListItemText="@string/personalize_settings_summary"
app:settingListItemTitle="@string/personalize" />
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_image"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_deep_orange_A400"
app:settingListItemText="@string/image_settings_summary"
app:settingListItemTitle="@string/pref_header_images" />
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_notifications_active"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_yellow_A400"
app:settingListItemText="@string/notification_settings_summary"
app:settingListItemTitle="@string/notification" />
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
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"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_testing"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_indigo_A400"
app:settingListItemText="@string/other_settings_summary"
app:settingListItemTitle="@string/others" />
2018-07-27 13:07:33 +00:00
2021-10-09 08:16:21 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
android:id="@+id/backup_restore_settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:settingListItemIcon="@drawable/ic_restore"
app:settingListItemIconColor="@color/md_cyan_400"
2021-10-27 11:35:48 +00:00
app:settingListItemText="@string/backup_restore_settings_summary"
2021-10-09 08:16:21 +00:00
app:settingListItemTitle="@string/backup_restore_title" />
2019-04-20 10:05:31 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.SettingListItemView
2019-04-05 10:45:09 +00:00
android:id="@+id/aboutSettings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-07-19 21:00:30 +00:00
app:settingListItemIcon="@drawable/ic_info_outline"
2019-12-10 17:36:20 +00:00
app:settingListItemIconColor="@color/md_light_green_A400"
app:settingListItemText="@string/about_settings_summary"
app:settingListItemTitle="@string/action_about" />
2019-04-05 10:45:09 +00:00
2018-07-27 13:07:33 +00:00
</LinearLayout>
2018-08-30 09:29:30 +00:00
</androidx.core.widget.NestedScrollView>