mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
updating the app settings UI
This commit is contained in:
@@ -34,9 +34,13 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
private var mStoredPrimaryColor = 0
|
private var mStoredPrimaryColor = 0
|
||||||
|
|
||||||
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)
|
||||||
mStoredPrimaryColor = getProperPrimaryColor()
|
mStoredPrimaryColor = getProperPrimaryColor()
|
||||||
|
|
||||||
|
updateMaterialActivityViews(settings_coordinator, settings_holder, useTransparentNavigation = true, useTopSearchMenu = false)
|
||||||
|
setupMaterialScrollListener(settings_nested_scrollview, settings_toolbar)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
@@ -95,7 +99,7 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
setupImportSettings()
|
setupImportSettings()
|
||||||
|
|
||||||
arrayOf(
|
arrayOf(
|
||||||
settings_color_customization_label,
|
settings_color_customization_section_label,
|
||||||
settings_general_settings_label,
|
settings_general_settings_label,
|
||||||
settings_reminders_label,
|
settings_reminders_label,
|
||||||
settings_caldav_label,
|
settings_caldav_label,
|
||||||
@@ -110,23 +114,6 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
).forEach {
|
).forEach {
|
||||||
it.setTextColor(getProperPrimaryColor())
|
it.setTextColor(getProperPrimaryColor())
|
||||||
}
|
}
|
||||||
|
|
||||||
arrayOf(
|
|
||||||
settings_color_customization_holder,
|
|
||||||
settings_general_settings_holder,
|
|
||||||
settings_reminders_holder,
|
|
||||||
settings_caldav_holder,
|
|
||||||
settings_new_events_holder,
|
|
||||||
settings_weekly_view_holder,
|
|
||||||
settings_monthly_view_holder,
|
|
||||||
settings_event_lists_holder,
|
|
||||||
settings_widgets_holder,
|
|
||||||
settings_events_holder,
|
|
||||||
settings_tasks_holder,
|
|
||||||
settings_migrating_holder
|
|
||||||
).forEach {
|
|
||||||
it.background.applyColorFilter(getProperBackgroundColor().getContrastColor())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
@@ -167,18 +154,13 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setupCustomizeColors() {
|
private fun setupCustomizeColors() {
|
||||||
settings_customize_colors_holder.setOnClickListener {
|
settings_color_customization_holder.setOnClickListener {
|
||||||
startCustomizationActivity()
|
startCustomizationActivity()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupCustomizeNotifications() {
|
private fun setupCustomizeNotifications() {
|
||||||
settings_customize_notifications_holder.beVisibleIf(isOreoPlus())
|
settings_customize_notifications_holder.beVisibleIf(isOreoPlus())
|
||||||
|
|
||||||
if (settings_customize_notifications_holder.isGone()) {
|
|
||||||
settings_reminder_sound_holder.background = resources.getDrawable(R.drawable.ripple_top_corners, theme)
|
|
||||||
}
|
|
||||||
|
|
||||||
settings_customize_notifications_holder.setOnClickListener {
|
settings_customize_notifications_holder.setOnClickListener {
|
||||||
launchCustomizeNotificationsIntent()
|
launchCustomizeNotificationsIntent()
|
||||||
}
|
}
|
||||||
@@ -197,11 +179,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_manage_event_types_holder.background = resources.getDrawable(R.drawable.ripple_top_corners, theme)
|
|
||||||
}
|
|
||||||
|
|
||||||
settings_language_holder.setOnClickListener {
|
settings_language_holder.setOnClickListener {
|
||||||
launchChangeAppLanguageIntent()
|
launchChangeAppLanguageIntent()
|
||||||
}
|
}
|
||||||
@@ -241,7 +218,6 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
|
|
||||||
private fun setupCaldavSync() {
|
private fun setupCaldavSync() {
|
||||||
settings_caldav_sync.isChecked = config.caldavSync
|
settings_caldav_sync.isChecked = config.caldavSync
|
||||||
checkCalDAVBackgrounds()
|
|
||||||
settings_caldav_sync_holder.setOnClickListener {
|
settings_caldav_sync_holder.setOnClickListener {
|
||||||
if (config.caldavSync) {
|
if (config.caldavSync) {
|
||||||
toggleCaldavSync(false)
|
toggleCaldavSync(false)
|
||||||
@@ -266,22 +242,12 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
private fun setupPullToRefresh() {
|
private fun setupPullToRefresh() {
|
||||||
settings_caldav_pull_to_refresh_holder.beVisibleIf(config.caldavSync)
|
settings_caldav_pull_to_refresh_holder.beVisibleIf(config.caldavSync)
|
||||||
settings_caldav_pull_to_refresh.isChecked = config.pullToRefresh
|
settings_caldav_pull_to_refresh.isChecked = config.pullToRefresh
|
||||||
checkCalDAVBackgrounds()
|
|
||||||
settings_caldav_pull_to_refresh_holder.setOnClickListener {
|
settings_caldav_pull_to_refresh_holder.setOnClickListener {
|
||||||
settings_caldav_pull_to_refresh.toggle()
|
settings_caldav_pull_to_refresh.toggle()
|
||||||
config.pullToRefresh = settings_caldav_pull_to_refresh.isChecked
|
config.pullToRefresh = settings_caldav_pull_to_refresh.isChecked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkCalDAVBackgrounds() {
|
|
||||||
if (config.caldavSync) {
|
|
||||||
settings_caldav_sync_holder.background = resources.getDrawable(R.drawable.ripple_top_corners, theme)
|
|
||||||
settings_manage_synced_calendars_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
|
|
||||||
} else {
|
|
||||||
settings_caldav_sync_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun setupManageSyncedCalendars() {
|
private fun setupManageSyncedCalendars() {
|
||||||
settings_manage_synced_calendars_holder.beVisibleIf(config.caldavSync)
|
settings_manage_synced_calendars_holder.beVisibleIf(config.caldavSync)
|
||||||
settings_manage_synced_calendars_holder.setOnClickListener {
|
settings_manage_synced_calendars_holder.setOnClickListener {
|
||||||
@@ -306,7 +272,6 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
updateDefaultEventTypeText()
|
updateDefaultEventTypeText()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
checkCalDAVBackgrounds()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showCalendarPicker() {
|
private fun showCalendarPicker() {
|
||||||
@@ -379,12 +344,10 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
private fun setupHighlightWeekends() {
|
private fun setupHighlightWeekends() {
|
||||||
settings_highlight_weekends.isChecked = config.highlightWeekends
|
settings_highlight_weekends.isChecked = config.highlightWeekends
|
||||||
settings_highlight_weekends_color_holder.beVisibleIf(config.highlightWeekends)
|
settings_highlight_weekends_color_holder.beVisibleIf(config.highlightWeekends)
|
||||||
setupHighlightWeekendColorBackground()
|
|
||||||
settings_highlight_weekends_holder.setOnClickListener {
|
settings_highlight_weekends_holder.setOnClickListener {
|
||||||
settings_highlight_weekends.toggle()
|
settings_highlight_weekends.toggle()
|
||||||
config.highlightWeekends = settings_highlight_weekends.isChecked
|
config.highlightWeekends = settings_highlight_weekends.isChecked
|
||||||
settings_highlight_weekends_color_holder.beVisibleIf(config.highlightWeekends)
|
settings_highlight_weekends_color_holder.beVisibleIf(config.highlightWeekends)
|
||||||
setupHighlightWeekendColorBackground()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,14 +363,6 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupHighlightWeekendColorBackground() {
|
|
||||||
if (settings_highlight_weekends_color_holder.isVisible()) {
|
|
||||||
settings_highlight_weekends_holder.background = resources.getDrawable(R.drawable.ripple_background, theme)
|
|
||||||
} else {
|
|
||||||
settings_highlight_weekends_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun setupDeleteAllEvents() {
|
private fun setupDeleteAllEvents() {
|
||||||
settings_delete_all_events_holder.setOnClickListener {
|
settings_delete_all_events_holder.setOnClickListener {
|
||||||
ConfirmationDialog(this, messageId = R.string.delete_all_events_confirmation) {
|
ConfirmationDialog(this, messageId = R.string.delete_all_events_confirmation) {
|
||||||
@@ -418,20 +373,11 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
|
|
||||||
private fun setupDisplayDescription() {
|
private fun setupDisplayDescription() {
|
||||||
settings_display_description.isChecked = config.displayDescription
|
settings_display_description.isChecked = config.displayDescription
|
||||||
setupDescriptionVisibility()
|
settings_replace_description_holder.beVisibleIf(config.displayDescription)
|
||||||
settings_display_description_holder.setOnClickListener {
|
settings_display_description_holder.setOnClickListener {
|
||||||
settings_display_description.toggle()
|
settings_display_description.toggle()
|
||||||
config.displayDescription = settings_display_description.isChecked
|
config.displayDescription = settings_display_description.isChecked
|
||||||
setupDescriptionVisibility()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun setupDescriptionVisibility() {
|
|
||||||
settings_replace_description_holder.beVisibleIf(config.displayDescription)
|
settings_replace_description_holder.beVisibleIf(config.displayDescription)
|
||||||
if (settings_replace_description_holder.isVisible()) {
|
|
||||||
settings_display_description_holder.background = resources.getDrawable(R.drawable.ripple_background, theme)
|
|
||||||
} else {
|
|
||||||
settings_display_description_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -566,20 +512,10 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
private fun setupUseSameSnooze() {
|
private fun setupUseSameSnooze() {
|
||||||
settings_snooze_time_holder.beVisibleIf(config.useSameSnooze)
|
settings_snooze_time_holder.beVisibleIf(config.useSameSnooze)
|
||||||
settings_use_same_snooze.isChecked = config.useSameSnooze
|
settings_use_same_snooze.isChecked = config.useSameSnooze
|
||||||
setupSnoozeBackgrounds()
|
|
||||||
settings_use_same_snooze_holder.setOnClickListener {
|
settings_use_same_snooze_holder.setOnClickListener {
|
||||||
settings_use_same_snooze.toggle()
|
settings_use_same_snooze.toggle()
|
||||||
config.useSameSnooze = settings_use_same_snooze.isChecked
|
config.useSameSnooze = settings_use_same_snooze.isChecked
|
||||||
settings_snooze_time_holder.beVisibleIf(config.useSameSnooze)
|
settings_snooze_time_holder.beVisibleIf(config.useSameSnooze)
|
||||||
setupSnoozeBackgrounds()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun setupSnoozeBackgrounds() {
|
|
||||||
if (config.useSameSnooze) {
|
|
||||||
settings_use_same_snooze_holder.background = resources.getDrawable(R.drawable.ripple_background, theme)
|
|
||||||
} else {
|
|
||||||
settings_use_same_snooze_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -641,12 +577,6 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
arrayOf(settings_default_reminder_1_holder, settings_default_reminder_2_holder, settings_default_reminder_3_holder).forEach {
|
arrayOf(settings_default_reminder_1_holder, settings_default_reminder_2_holder, settings_default_reminder_3_holder).forEach {
|
||||||
it.beVisibleIf(show)
|
it.beVisibleIf(show)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show) {
|
|
||||||
settings_use_last_event_reminders_holder.background = resources.getDrawable(R.drawable.ripple_background, theme)
|
|
||||||
} else {
|
|
||||||
settings_use_last_event_reminders_holder.background = resources.getDrawable(R.drawable.ripple_bottom_corners, theme)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getHoursString(hours: Int) = String.format("%02d:00", hours)
|
private fun getHoursString(hours: Int) = String.format("%02d:00", hours)
|
||||||
@@ -695,7 +625,7 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setupCustomizeWidgetColors() {
|
private fun setupCustomizeWidgetColors() {
|
||||||
settings_customize_widget_colors_holder.setOnClickListener {
|
settings_widget_color_customization_holder.setOnClickListener {
|
||||||
Intent(this, WidgetListConfigureActivity::class.java).apply {
|
Intent(this, WidgetListConfigureActivity::class.java).apply {
|
||||||
putExtra(IS_CUSTOMIZING_COLORS, true)
|
putExtra(IS_CUSTOMIZING_COLORS, true)
|
||||||
startActivity(this)
|
startActivity(this)
|
||||||
|
@@ -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
|
|
||||||
android:id="@+id/settings_app_bar_layout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.MaterialToolbar
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
android:id="@+id/settings_toolbar"
|
android:id="@+id/settings_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="@color/color_primary"
|
android:background="@color/color_primary"
|
||||||
app:layout_scrollFlags="scroll|enterAlways"
|
|
||||||
app:title="@string/settings"
|
app:title="@string/settings"
|
||||||
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
|
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"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/settings_customize_colors_holder"
|
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_customize_colors_label"
|
android:id="@+id/settings_color_customization_label"
|
||||||
style="@style/SettingsTextLabelStyle"
|
style="@style/SettingsTextLabelStyle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/customize_colors" />
|
android:text="@string/customize_colors"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/settings_customize_widget_colors_holder"
|
android:id="@+id/settings_widget_color_customization_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_customize_widget_colors_label"
|
android:id="@+id/settings_widget_color_customization_label"
|
||||||
style="@style/SettingsTextLabelStyle"
|
style="@style/SettingsTextLabelStyle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/customize_widget_colors" />
|
android:text="@string/customize_widget_colors"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
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,20 +80,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/general_settings" />
|
android:text="@string/general_settings" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_general_settings_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_use_english_holder"
|
android:id="@+id/settings_use_english_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_use_english"
|
android:id="@+id/settings_use_english"
|
||||||
@@ -119,8 +99,7 @@
|
|||||||
android:id="@+id/settings_language_holder"
|
android:id="@+id/settings_language_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_language_label"
|
android:id="@+id/settings_language_label"
|
||||||
@@ -143,8 +122,7 @@
|
|||||||
android:id="@+id/settings_manage_event_types_holder"
|
android:id="@+id/settings_manage_event_types_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_manage_event_types_label"
|
android:id="@+id/settings_manage_event_types_label"
|
||||||
@@ -159,8 +137,7 @@
|
|||||||
android:id="@+id/settings_manage_quick_filter_event_types_holder"
|
android:id="@+id/settings_manage_quick_filter_event_types_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_manage_quick_filter_event_types"
|
android:id="@+id/settings_manage_quick_filter_event_types"
|
||||||
@@ -175,8 +152,7 @@
|
|||||||
android:id="@+id/settings_hour_format_holder"
|
android:id="@+id/settings_hour_format_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_hour_format"
|
android:id="@+id/settings_hour_format"
|
||||||
@@ -191,8 +167,7 @@
|
|||||||
android:id="@+id/settings_sunday_first_holder"
|
android:id="@+id/settings_sunday_first_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_sunday_first"
|
android:id="@+id/settings_sunday_first"
|
||||||
@@ -207,8 +182,7 @@
|
|||||||
android:id="@+id/settings_highlight_weekends_holder"
|
android:id="@+id/settings_highlight_weekends_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_highlight_weekends"
|
android:id="@+id/settings_highlight_weekends"
|
||||||
@@ -223,8 +197,7 @@
|
|||||||
android:id="@+id/settings_highlight_weekends_color_holder"
|
android:id="@+id/settings_highlight_weekends_color_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_highlight_weekends_color_text_label"
|
android:id="@+id/settings_highlight_weekends_color_text_label"
|
||||||
@@ -245,7 +218,10 @@
|
|||||||
android:clickable="false" />
|
android:clickable="false" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_general_settings_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_reminders_label"
|
android:id="@+id/settings_reminders_label"
|
||||||
@@ -254,20 +230,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/reminders" />
|
android:text="@string/reminders" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_reminders_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_customize_notifications_holder"
|
android:id="@+id/settings_customize_notifications_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_customize_notifications"
|
android:id="@+id/settings_customize_notifications"
|
||||||
@@ -282,8 +249,7 @@
|
|||||||
android:id="@+id/settings_reminder_sound_holder"
|
android:id="@+id/settings_reminder_sound_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_reminder_sound_label"
|
android:id="@+id/settings_reminder_sound_label"
|
||||||
@@ -306,8 +272,7 @@
|
|||||||
android:id="@+id/settings_reminder_audio_stream_holder"
|
android:id="@+id/settings_reminder_audio_stream_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_reminder_audio_stream_label"
|
android:id="@+id/settings_reminder_audio_stream_label"
|
||||||
@@ -330,8 +295,7 @@
|
|||||||
android:id="@+id/settings_vibrate_holder"
|
android:id="@+id/settings_vibrate_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_vibrate"
|
android:id="@+id/settings_vibrate"
|
||||||
@@ -346,8 +310,7 @@
|
|||||||
android:id="@+id/settings_loop_reminders_holder"
|
android:id="@+id/settings_loop_reminders_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_loop_reminders"
|
android:id="@+id/settings_loop_reminders"
|
||||||
@@ -362,8 +325,7 @@
|
|||||||
android:id="@+id/settings_use_same_snooze_holder"
|
android:id="@+id/settings_use_same_snooze_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_use_same_snooze"
|
android:id="@+id/settings_use_same_snooze"
|
||||||
@@ -378,8 +340,7 @@
|
|||||||
android:id="@+id/settings_snooze_time_holder"
|
android:id="@+id/settings_snooze_time_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_snooze_time_label"
|
android:id="@+id/settings_snooze_time_label"
|
||||||
@@ -397,7 +358,10 @@
|
|||||||
tools:text="10 minutes" />
|
tools:text="10 minutes" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_reminders_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_caldav_label"
|
android:id="@+id/settings_caldav_label"
|
||||||
@@ -406,20 +370,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/caldav" />
|
android:text="@string/caldav" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_caldav_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_caldav_sync_holder"
|
android:id="@+id/settings_caldav_sync_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_caldav_sync"
|
android:id="@+id/settings_caldav_sync"
|
||||||
@@ -434,8 +389,7 @@
|
|||||||
android:id="@+id/settings_caldav_pull_to_refresh_holder"
|
android:id="@+id/settings_caldav_pull_to_refresh_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_caldav_pull_to_refresh"
|
android:id="@+id/settings_caldav_pull_to_refresh"
|
||||||
@@ -450,8 +404,7 @@
|
|||||||
android:id="@+id/settings_manage_synced_calendars_holder"
|
android:id="@+id/settings_manage_synced_calendars_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_manage_synced_calendars"
|
android:id="@+id/settings_manage_synced_calendars"
|
||||||
@@ -461,7 +414,10 @@
|
|||||||
android:text="@string/manage_synced_calendars" />
|
android:text="@string/manage_synced_calendars" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_caldav_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_new_events_label"
|
android:id="@+id/settings_new_events_label"
|
||||||
@@ -470,20 +426,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/new_events" />
|
android:text="@string/new_events" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_new_events_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_default_start_time_holder"
|
android:id="@+id/settings_default_start_time_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_start_time_label"
|
android:id="@+id/settings_default_start_time_label"
|
||||||
@@ -506,8 +453,7 @@
|
|||||||
android:id="@+id/settings_default_duration_holder"
|
android:id="@+id/settings_default_duration_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_duration_label"
|
android:id="@+id/settings_default_duration_label"
|
||||||
@@ -530,8 +476,7 @@
|
|||||||
android:id="@+id/settings_default_event_type_holder"
|
android:id="@+id/settings_default_event_type_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_event_type_label"
|
android:id="@+id/settings_default_event_type_label"
|
||||||
@@ -554,8 +499,7 @@
|
|||||||
android:id="@+id/settings_use_last_event_reminders_holder"
|
android:id="@+id/settings_use_last_event_reminders_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_use_last_event_reminders"
|
android:id="@+id/settings_use_last_event_reminders"
|
||||||
@@ -570,8 +514,7 @@
|
|||||||
android:id="@+id/settings_default_reminder_1_holder"
|
android:id="@+id/settings_default_reminder_1_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_reminder_1_label"
|
android:id="@+id/settings_default_reminder_1_label"
|
||||||
@@ -594,8 +537,7 @@
|
|||||||
android:id="@+id/settings_default_reminder_2_holder"
|
android:id="@+id/settings_default_reminder_2_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_reminder_2_label"
|
android:id="@+id/settings_default_reminder_2_label"
|
||||||
@@ -618,8 +560,7 @@
|
|||||||
android:id="@+id/settings_default_reminder_3_holder"
|
android:id="@+id/settings_default_reminder_3_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_default_reminder_3_label"
|
android:id="@+id/settings_default_reminder_3_label"
|
||||||
@@ -637,7 +578,10 @@
|
|||||||
tools:text="10 minutes" />
|
tools:text="10 minutes" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_new_events_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_weekly_view_label"
|
android:id="@+id/settings_weekly_view_label"
|
||||||
@@ -646,20 +590,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/weekly_view" />
|
android:text="@string/weekly_view" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_weekly_view_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_start_weekly_at_holder"
|
android:id="@+id/settings_start_weekly_at_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_start_weekly_at_label"
|
android:id="@+id/settings_start_weekly_at_label"
|
||||||
@@ -682,8 +617,7 @@
|
|||||||
android:id="@+id/settings_midnight_span_events_holder"
|
android:id="@+id/settings_midnight_span_events_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_midnight_span_event"
|
android:id="@+id/settings_midnight_span_event"
|
||||||
@@ -698,8 +632,7 @@
|
|||||||
android:id="@+id/settings_allow_customize_day_count_holder"
|
android:id="@+id/settings_allow_customize_day_count_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_allow_customize_day_count"
|
android:id="@+id/settings_allow_customize_day_count"
|
||||||
@@ -714,8 +647,7 @@
|
|||||||
android:id="@+id/settings_start_week_with_current_day_holder"
|
android:id="@+id/settings_start_week_with_current_day_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_start_week_with_current_day"
|
android:id="@+id/settings_start_week_with_current_day"
|
||||||
@@ -725,7 +657,10 @@
|
|||||||
android:text="@string/start_week_with_current_day" />
|
android:text="@string/start_week_with_current_day" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_weekly_view_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_monthly_view_label"
|
android:id="@+id/settings_monthly_view_label"
|
||||||
@@ -734,20 +669,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/monthly_view" />
|
android:text="@string/monthly_view" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_monthly_view_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_week_numbers_holder"
|
android:id="@+id/settings_week_numbers_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_week_numbers"
|
android:id="@+id/settings_week_numbers"
|
||||||
@@ -762,8 +688,7 @@
|
|||||||
android:id="@+id/settings_show_grid_holder"
|
android:id="@+id/settings_show_grid_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_show_grid"
|
android:id="@+id/settings_show_grid"
|
||||||
@@ -773,7 +698,10 @@
|
|||||||
android:text="@string/show_a_grid" />
|
android:text="@string/show_a_grid" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_monthly_view_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_event_lists_label"
|
android:id="@+id/settings_event_lists_label"
|
||||||
@@ -782,20 +710,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/event_lists" />
|
android:text="@string/event_lists" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_event_lists_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_display_past_events_holder"
|
android:id="@+id/settings_display_past_events_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_display_past_events_label"
|
android:id="@+id/settings_display_past_events_label"
|
||||||
@@ -818,8 +737,7 @@
|
|||||||
android:id="@+id/settings_display_description_holder"
|
android:id="@+id/settings_display_description_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_display_description"
|
android:id="@+id/settings_display_description"
|
||||||
@@ -834,8 +752,7 @@
|
|||||||
android:id="@+id/settings_replace_description_holder"
|
android:id="@+id/settings_replace_description_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_replace_description"
|
android:id="@+id/settings_replace_description"
|
||||||
@@ -845,7 +762,10 @@
|
|||||||
android:text="@string/replace_description_with_location" />
|
android:text="@string/replace_description_with_location" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_event_lists_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_widgets_label"
|
android:id="@+id/settings_widgets_label"
|
||||||
@@ -854,20 +774,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/widgets" />
|
android:text="@string/widgets" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_widgets_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_font_size_holder"
|
android:id="@+id/settings_font_size_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_font_size_label"
|
android:id="@+id/settings_font_size_label"
|
||||||
@@ -890,8 +801,7 @@
|
|||||||
android:id="@+id/settings_list_widget_view_to_open_holder"
|
android:id="@+id/settings_list_widget_view_to_open_holder"
|
||||||
style="@style/SettingsHolderTextViewStyle"
|
style="@style/SettingsHolderTextViewStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_list_widget_view_to_open_label"
|
android:id="@+id/settings_list_widget_view_to_open_label"
|
||||||
@@ -909,7 +819,10 @@
|
|||||||
tools:text="@string/daily_view" />
|
tools:text="@string/daily_view" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_widgets_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_events_label"
|
android:id="@+id/settings_events_label"
|
||||||
@@ -918,20 +831,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/events" />
|
android:text="@string/events" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_events_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_dim_past_events_holder"
|
android:id="@+id/settings_dim_past_events_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_dim_past_events"
|
android:id="@+id/settings_dim_past_events"
|
||||||
@@ -946,8 +850,7 @@
|
|||||||
android:id="@+id/settings_allow_changing_time_zones_holder"
|
android:id="@+id/settings_allow_changing_time_zones_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_allow_changing_time_zones"
|
android:id="@+id/settings_allow_changing_time_zones"
|
||||||
@@ -962,8 +865,7 @@
|
|||||||
android:id="@+id/settings_delete_all_events_holder"
|
android:id="@+id/settings_delete_all_events_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_delete_all_events"
|
android:id="@+id/settings_delete_all_events"
|
||||||
@@ -973,7 +875,10 @@
|
|||||||
android:text="@string/delete_all_events" />
|
android:text="@string/delete_all_events" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_events_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_tasks_label"
|
android:id="@+id/settings_tasks_label"
|
||||||
@@ -982,20 +887,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/tasks" />
|
android:text="@string/tasks" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_tasks_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_allow_creating_tasks_holder"
|
android:id="@+id/settings_allow_creating_tasks_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_allow_creating_tasks"
|
android:id="@+id/settings_allow_creating_tasks"
|
||||||
@@ -1010,8 +906,7 @@
|
|||||||
android:id="@+id/settings_dim_completed_tasks_holder"
|
android:id="@+id/settings_dim_completed_tasks_holder"
|
||||||
style="@style/SettingsHolderCheckboxStyle"
|
style="@style/SettingsHolderCheckboxStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/settings_dim_completed_tasks"
|
android:id="@+id/settings_dim_completed_tasks"
|
||||||
@@ -1021,7 +916,10 @@
|
|||||||
android:text="@string/dim_completed_tasks" />
|
android:text="@string/dim_completed_tasks" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/settings_tasks_divider"
|
||||||
|
layout="@layout/divider" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/settings_migrating_label"
|
android:id="@+id/settings_migrating_label"
|
||||||
@@ -1030,20 +928,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/migrating" />
|
android:text="@string/migrating" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/settings_migrating_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="@dimen/medium_margin"
|
|
||||||
android:background="@drawable/section_holder_stroke"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_export_holder"
|
android:id="@+id/settings_export_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_export"
|
android:id="@+id/settings_export"
|
||||||
@@ -1058,8 +947,7 @@
|
|||||||
android:id="@+id/settings_import_holder"
|
android:id="@+id/settings_import_holder"
|
||||||
style="@style/SettingsHolderTextViewOneLinerStyle"
|
style="@style/SettingsHolderTextViewOneLinerStyle"
|
||||||
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">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/settings_import"
|
android:id="@+id/settings_import"
|
||||||
@@ -1070,6 +958,5 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
Reference in New Issue
Block a user