redesigning the app settings

This commit is contained in:
tibbi 2022-12-24 23:16:24 +01:00
parent 7b76b7290c
commit 31e9c2d548
2 changed files with 218 additions and 288 deletions

View File

@ -4,7 +4,9 @@ import android.content.Intent
import android.os.Bundle import android.os.Bundle
import android.view.Menu import android.view.Menu
import com.simplemobiletools.commons.dialogs.RadioGroupDialog import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.beVisibleIf
import com.simplemobiletools.commons.extensions.getProperPrimaryColor
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.notes.pro.R import com.simplemobiletools.notes.pro.R
@ -18,9 +20,14 @@ import java.util.*
import kotlin.system.exitProcess import kotlin.system.exitProcess
class SettingsActivity : SimpleActivity() { class SettingsActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
isMaterialActivity = true
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.activity_settings) setContentView(R.layout.activity_settings)
updateMaterialActivityViews(settings_coordinator, settings_holder)
setupMaterialScrollListener(settings_nested_scrollview, settings_toolbar)
} }
override fun onResume() { override fun onResume() {
@ -46,7 +53,7 @@ class SettingsActivity : SimpleActivity() {
updateTextColors(settings_nested_scrollview) updateTextColors(settings_nested_scrollview)
arrayOf( arrayOf(
settings_color_customization_label, settings_color_customization_section_label,
settings_general_settings_label, settings_general_settings_label,
settings_text_label, settings_text_label,
settings_startup_label, settings_startup_label,
@ -54,16 +61,6 @@ class SettingsActivity : SimpleActivity() {
).forEach { ).forEach {
it.setTextColor(getProperPrimaryColor()) it.setTextColor(getProperPrimaryColor())
} }
arrayOf(
settings_color_customization_holder,
settings_general_settings_holder,
settings_text_holder,
settings_startup_holder,
settings_saving_holder
).forEach {
it.background.applyColorFilter(getProperBackgroundColor().getContrastColor())
}
} }
override fun onCreateOptionsMenu(menu: Menu): Boolean { override fun onCreateOptionsMenu(menu: Menu): Boolean {
@ -72,7 +69,7 @@ class SettingsActivity : SimpleActivity() {
} }
private fun setupCustomizeColors() { private fun setupCustomizeColors() {
settings_customize_colors_holder.setOnClickListener { settings_color_customization_holder.setOnClickListener {
startCustomizationActivity() startCustomizationActivity()
} }
} }
@ -90,11 +87,6 @@ class SettingsActivity : SimpleActivity() {
private fun setupLanguage() { private fun setupLanguage() {
settings_language.text = Locale.getDefault().displayLanguage settings_language.text = Locale.getDefault().displayLanguage
settings_language_holder.beVisibleIf(isTiramisuPlus()) settings_language_holder.beVisibleIf(isTiramisuPlus())
if (settings_use_english_holder.isGone() && settings_language_holder.isGone()) {
settings_font_size_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme)
}
settings_language_holder.setOnClickListener { settings_language_holder.setOnClickListener {
launchChangeAppLanguageIntent() launchChangeAppLanguageIntent()
} }
@ -144,10 +136,6 @@ class SettingsActivity : SimpleActivity() {
private fun setupShowNotePicker() { private fun setupShowNotePicker() {
NotesHelper(this).getNotes { NotesHelper(this).getNotes {
settings_show_note_picker_holder.beVisibleIf(it.size > 1) settings_show_note_picker_holder.beVisibleIf(it.size > 1)
if (settings_show_note_picker_holder.isGone()) {
settings_show_keyboard_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
}
} }
settings_show_note_picker.isChecked = config.showNotePicker settings_show_note_picker.isChecked = config.showNotePicker
@ -236,7 +224,7 @@ class SettingsActivity : SimpleActivity() {
private fun setupCustomizeWidgetColors() { private fun setupCustomizeWidgetColors() {
var widgetToCustomize: Widget? = null var widgetToCustomize: Widget? = null
settings_customize_widget_colors_holder.setOnClickListener { settings_widget_color_customization_holder.setOnClickListener {
Intent(this, WidgetConfigureActivity::class.java).apply { Intent(this, WidgetConfigureActivity::class.java).apply {
putExtra(IS_CUSTOMIZING_COLORS, true) putExtra(IS_CUSTOMIZING_COLORS, true)
@ -257,11 +245,6 @@ class SettingsActivity : SimpleActivity() {
val widgets = widgetsDB.getWidgets().filter { it.widgetId != 0 } val widgets = widgetsDB.getWidgets().filter { it.widgetId != 0 }
if (widgets.size == 1) { if (widgets.size == 1) {
widgetToCustomize = widgets.first() widgetToCustomize = widgets.first()
} else if (widgets.size > 1) {
runOnUiThread {
settings_customize_widget_colors_holder.beGone()
settings_customize_colors_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme)
}
} }
} }
} }

View File

@ -6,29 +6,21 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/settings_app_bar_layout" android:id="@+id/settings_toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
<com.google.android.material.appbar.MaterialToolbar app:title="@string/settings"
android:id="@+id/settings_toolbar" app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:layout_scrollFlags="scroll|enterAlways"
app:title="@string/settings"
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView <androidx.core.widget.NestedScrollView
android:id="@+id/settings_nested_scrollview" android:id="@+id/settings_nested_scrollview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize"
android:fillViewport="true" android:fillViewport="true"
android:scrollbars="none" android:scrollbars="none">
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout <LinearLayout
android:id="@+id/settings_holder" android:id="@+id/settings_holder"
@ -37,52 +29,49 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/settings_color_customization_label" android:id="@+id/settings_color_customization_section_label"
style="@style/SettingsSectionLabelStyle" style="@style/SettingsSectionLabelStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/color_customization" /> android:text="@string/color_customization" />
<LinearLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/settings_color_customization_holder" android:id="@+id/settings_color_customization_holder"
style="@style/SettingsHolderTextViewOneLinerStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_customize_colors_holder" android:id="@+id/settings_color_customization_label"
style="@style/SettingsHolderTextViewOneLinerStyle" style="@style/SettingsTextLabelStyle"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:text="@string/customize_colors"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.simplemobiletools.commons.views.MyTextView </androidx.constraintlayout.widget.ConstraintLayout>
android:id="@+id/settings_customize_colors_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/customize_colors" />
</RelativeLayout> <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/settings_widget_color_customization_holder"
style="@style/SettingsHolderTextViewOneLinerStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_customize_widget_colors_holder" android:id="@+id/settings_widget_color_customization_label"
style="@style/SettingsHolderTextViewOneLinerStyle" style="@style/SettingsTextLabelStyle"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners"> android:text="@string/customize_widget_colors"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.simplemobiletools.commons.views.MyTextView </androidx.constraintlayout.widget.ConstraintLayout>
android:id="@+id/settings_customize_widget_colors_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/customize_widget_colors" />
</RelativeLayout> <include
</LinearLayout> android:id="@+id/settings_color_customization_divider"
layout="@layout/divider" />
<TextView <TextView
android:id="@+id/settings_general_settings_label" android:id="@+id/settings_general_settings_label"
@ -91,78 +80,70 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/general_settings" /> android:text="@string/general_settings" />
<LinearLayout <RelativeLayout
android:id="@+id/settings_general_settings_holder" android:id="@+id/settings_use_english_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_use_english_holder" android:id="@+id/settings_use_english"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:text="@string/use_english_language" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_use_english"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/use_english_language" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_language_holder"
style="@style/SettingsHolderTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_language_holder" android:id="@+id/settings_language_label"
style="@style/SettingsHolderTextViewStyle" style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/language" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_language"
style="@style/SettingsTextValueStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_language_label"
tools:text="English" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_font_size_holder"
style="@style/SettingsHolderTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_font_size_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/font_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_font_size"
style="@style/SettingsTextValueStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:layout_below="@+id/settings_font_size_label"
tools:text="100%" />
<com.simplemobiletools.commons.views.MyTextView </RelativeLayout>
android:id="@+id/settings_language_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/language" />
<com.simplemobiletools.commons.views.MyTextView <include
android:id="@+id/settings_language" android:id="@+id/settings_general_settings_divider"
style="@style/SettingsTextValueStyle" layout="@layout/divider" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_language_label"
tools:text="English" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_font_size_holder"
style="@style/SettingsHolderTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_font_size_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/font_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_font_size"
style="@style/SettingsTextValueStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_font_size_label"
tools:text="100%" />
</RelativeLayout>
</LinearLayout>
<TextView <TextView
android:id="@+id/settings_text_label" android:id="@+id/settings_text_label"
@ -171,118 +152,107 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/text" /> android:text="@string/text" />
<LinearLayout <RelativeLayout
android:id="@+id/settings_text_holder" android:id="@+id/settings_show_word_count_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_show_word_count_holder" android:id="@+id/settings_show_word_count"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:text="@string/show_word_count" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_show_word_count"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/show_word_count" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_clickable_links_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_clickable_links_holder" android:id="@+id/settings_clickable_links"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_background"> android:text="@string/links_and_emails_clickable" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_clickable_links"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/links_and_emails_clickable" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_monospaced_font_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_monospaced_font_holder" android:id="@+id/settings_monospaced_font"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_background"> android:text="@string/monospaced_font" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_monospaced_font"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/monospaced_font" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_use_incognito_mode_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_use_incognito_mode_holder" android:id="@+id/settings_use_incognito_mode"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_background"> android:text="@string/use_incognito_mode" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_use_incognito_mode"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/use_incognito_mode" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_enable_line_wrap_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_enable_line_wrap_holder" android:id="@+id/settings_enable_line_wrap"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_background"> android:text="@string/enable_line_wrap" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_enable_line_wrap"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/enable_line_wrap" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_gravity_holder"
style="@style/SettingsHolderTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_gravity_holder" android:id="@+id/settings_gravity_label"
style="@style/SettingsHolderTextViewStyle" style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/alignment" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_gravity"
style="@style/SettingsTextValueStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners"> android:layout_below="@+id/settings_gravity_label"
tools:text="@string/left" />
<com.simplemobiletools.commons.views.MyTextView </RelativeLayout>
android:id="@+id/settings_gravity_label"
style="@style/SettingsTextLabelStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/alignment" />
<com.simplemobiletools.commons.views.MyTextView <include
android:id="@+id/settings_gravity" android:id="@+id/settings_text_divider"
style="@style/SettingsTextValueStyle" layout="@layout/divider" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_gravity_label"
tools:text="@string/left" />
</RelativeLayout>
</LinearLayout>
<TextView <TextView
android:id="@+id/settings_startup_label" android:id="@+id/settings_startup_label"
@ -291,62 +261,50 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/startup" /> android:text="@string/startup" />
<LinearLayout <RelativeLayout
android:id="@+id/settings_startup_holder" android:id="@+id/settings_cursor_placement_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_cursor_placement_holder" android:id="@+id/settings_cursor_placement"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:text="@string/place_cursor_end" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_cursor_placement"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/place_cursor_end" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_show_keyboard_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_show_keyboard_holder" android:id="@+id/settings_show_keyboard"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_background"> android:text="@string/show_keyboard" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_show_keyboard"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/show_keyboard" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_show_note_picker_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_show_note_picker_holder" android:id="@+id/settings_show_note_picker"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners"> android:text="@string/show_note_picker" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_show_note_picker"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/show_note_picker" />
</RelativeLayout>
</LinearLayout>
<TextView <TextView
android:id="@+id/settings_saving_label" android:id="@+id/settings_saving_label"
@ -355,46 +313,35 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/saving_label" /> android:text="@string/saving_label" />
<LinearLayout <RelativeLayout
android:id="@+id/settings_saving_holder" android:id="@+id/settings_autosave_notes_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_autosave_notes_holder" android:id="@+id/settings_autosave_notes"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_top_corners"> android:text="@string/autosave_notes" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_autosave_notes"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/autosave_notes" />
</RelativeLayout> <RelativeLayout
android:id="@+id/settings_display_success_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_display_success_holder" android:id="@+id/settings_display_success"
style="@style/SettingsHolderCheckboxStyle" style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/ripple_bottom_corners"> android:text="@string/display_success_message" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox </RelativeLayout>
android:id="@+id/settings_display_success"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/display_success_message" />
</RelativeLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>