mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	redesigning the app settings
This commit is contained in:
		| @@ -56,7 +56,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'com.github.SimpleMobileTools:Simple-Commons:df457fe86a' |     implementation 'com.github.SimpleMobileTools:Simple-Commons:f86699e092' | ||||||
|     implementation 'joda-time:joda-time:2.10.3' |     implementation 'joda-time:joda-time:2.10.3' | ||||||
|     implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' |     implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' | ||||||
|     implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' |     implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' | ||||||
|   | |||||||
| @@ -3,10 +3,7 @@ package com.simplemobiletools.contacts.pro.activities | |||||||
| 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.baseConfig | import com.simplemobiletools.commons.extensions.* | ||||||
| import com.simplemobiletools.commons.extensions.beVisibleIf |  | ||||||
| import com.simplemobiletools.commons.extensions.getFontSizeText |  | ||||||
| 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.contacts.pro.R | import com.simplemobiletools.contacts.pro.R | ||||||
| @@ -44,6 +41,19 @@ class SettingsActivity : SimpleActivity() { | |||||||
|         setupDefaultTab() |         setupDefaultTab() | ||||||
|         updateTextColors(settings_holder) |         updateTextColors(settings_holder) | ||||||
|         invalidateOptionsMenu() |         invalidateOptionsMenu() | ||||||
|  |  | ||||||
|  |         arrayOf(settings_color_customization_label, settings_general_settings_label, settings_main_screen_label, settings_list_view_label).forEach { | ||||||
|  |             it.setTextColor(getAdjustedPrimaryColor()) | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         arrayOf( | ||||||
|  |             settings_color_customization_holder, | ||||||
|  |             settings_general_settings_holder, | ||||||
|  |             settings_main_screen_holder, | ||||||
|  |             settings_list_view_holder | ||||||
|  |         ).forEach { | ||||||
|  |             it.background.applyColorFilter(baseConfig.backgroundColor.getContrastColor()) | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     override fun onCreateOptionsMenu(menu: Menu): Boolean { |     override fun onCreateOptionsMenu(menu: Menu): Boolean { | ||||||
| @@ -64,7 +74,7 @@ class SettingsActivity : SimpleActivity() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun setupManageShownTabs() { |     private fun setupManageShownTabs() { | ||||||
|         settings_manage_tabs_holder.setOnClickListener { |         settings_manage_shown_tabs_holder.setOnClickListener { | ||||||
|             ManageVisibleTabsDialog(this) |             ManageVisibleTabsDialog(this) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| @@ -76,7 +86,8 @@ class SettingsActivity : SimpleActivity() { | |||||||
|                 RadioItem(TAB_CONTACTS, getString(R.string.contacts_tab)), |                 RadioItem(TAB_CONTACTS, getString(R.string.contacts_tab)), | ||||||
|                 RadioItem(TAB_FAVORITES, getString(R.string.favorites_tab)), |                 RadioItem(TAB_FAVORITES, getString(R.string.favorites_tab)), | ||||||
|                 RadioItem(TAB_GROUPS, getString(R.string.groups_tab)), |                 RadioItem(TAB_GROUPS, getString(R.string.groups_tab)), | ||||||
|                 RadioItem(TAB_LAST_USED, getString(R.string.last_used_tab))) |                 RadioItem(TAB_LAST_USED, getString(R.string.last_used_tab)) | ||||||
|  |             ) | ||||||
|  |  | ||||||
|             RadioGroupDialog(this@SettingsActivity, items, config.defaultTab) { |             RadioGroupDialog(this@SettingsActivity, items, config.defaultTab) { | ||||||
|                 config.defaultTab = it as Int |                 config.defaultTab = it as Int | ||||||
| @@ -85,12 +96,14 @@ class SettingsActivity : SimpleActivity() { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun getDefaultTabText() = getString(when (baseConfig.defaultTab) { |     private fun getDefaultTabText() = getString( | ||||||
|  |         when (baseConfig.defaultTab) { | ||||||
|             TAB_CONTACTS -> R.string.contacts_tab |             TAB_CONTACTS -> R.string.contacts_tab | ||||||
|             TAB_FAVORITES -> R.string.favorites_tab |             TAB_FAVORITES -> R.string.favorites_tab | ||||||
|             TAB_GROUPS -> R.string.groups_tab |             TAB_GROUPS -> R.string.groups_tab | ||||||
|             else -> R.string.last_used_tab |             else -> R.string.last_used_tab | ||||||
|     }) |         } | ||||||
|  |     ) | ||||||
|  |  | ||||||
|     private fun setupFontSize() { |     private fun setupFontSize() { | ||||||
|         settings_font_size.text = getFontSizeText() |         settings_font_size.text = getFontSizeText() | ||||||
| @@ -99,7 +112,8 @@ class SettingsActivity : SimpleActivity() { | |||||||
|                 RadioItem(FONT_SIZE_SMALL, getString(R.string.small)), |                 RadioItem(FONT_SIZE_SMALL, getString(R.string.small)), | ||||||
|                 RadioItem(FONT_SIZE_MEDIUM, getString(R.string.medium)), |                 RadioItem(FONT_SIZE_MEDIUM, getString(R.string.medium)), | ||||||
|                 RadioItem(FONT_SIZE_LARGE, getString(R.string.large)), |                 RadioItem(FONT_SIZE_LARGE, getString(R.string.large)), | ||||||
|                 RadioItem(FONT_SIZE_EXTRA_LARGE, getString(R.string.extra_large))) |                 RadioItem(FONT_SIZE_EXTRA_LARGE, getString(R.string.extra_large)) | ||||||
|  |             ) | ||||||
|  |  | ||||||
|             RadioGroupDialog(this@SettingsActivity, items, config.fontSize) { |             RadioGroupDialog(this@SettingsActivity, items, config.fontSize) { | ||||||
|                 config.fontSize = it as Int |                 config.fontSize = it as Int | ||||||
| @@ -111,6 +125,11 @@ class SettingsActivity : SimpleActivity() { | |||||||
|     private fun setupUseEnglish() { |     private fun setupUseEnglish() { | ||||||
|         settings_use_english_holder.beVisibleIf(config.wasUseEnglishToggled || Locale.getDefault().language != "en") |         settings_use_english_holder.beVisibleIf(config.wasUseEnglishToggled || Locale.getDefault().language != "en") | ||||||
|         settings_use_english.isChecked = config.useEnglish |         settings_use_english.isChecked = config.useEnglish | ||||||
|  |  | ||||||
|  |         if (settings_use_english_holder.isGone()) { | ||||||
|  |             settings_font_size_holder.background = resources.getDrawable(R.drawable.ripple_top_corners, theme) | ||||||
|  |         } | ||||||
|  |  | ||||||
|         settings_use_english_holder.setOnClickListener { |         settings_use_english_holder.setOnClickListener { | ||||||
|             settings_use_english.toggle() |             settings_use_english.toggle() | ||||||
|             config.useEnglish = settings_use_english.isChecked |             config.useEnglish = settings_use_english.isChecked | ||||||
| @@ -143,10 +162,10 @@ class SettingsActivity : SimpleActivity() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun setupStartNameWithSurname() { |     private fun setupStartNameWithSurname() { | ||||||
|         settings_start_with_surname.isChecked = config.startNameWithSurname |         settings_start_name_with_surname.isChecked = config.startNameWithSurname | ||||||
|         settings_start_with_surname_holder.setOnClickListener { |         settings_start_name_with_surname_holder.setOnClickListener { | ||||||
|             settings_start_with_surname.toggle() |             settings_start_name_with_surname.toggle() | ||||||
|             config.startNameWithSurname = settings_start_with_surname.isChecked |             config.startNameWithSurname = settings_start_name_with_surname.isChecked | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -172,7 +191,8 @@ class SettingsActivity : SimpleActivity() { | |||||||
|             val items = arrayListOf( |             val items = arrayListOf( | ||||||
|                 RadioItem(ON_CLICK_CALL_CONTACT, getString(R.string.call_contact)), |                 RadioItem(ON_CLICK_CALL_CONTACT, getString(R.string.call_contact)), | ||||||
|                 RadioItem(ON_CLICK_VIEW_CONTACT, getString(R.string.view_contact)), |                 RadioItem(ON_CLICK_VIEW_CONTACT, getString(R.string.view_contact)), | ||||||
|                 RadioItem(ON_CLICK_EDIT_CONTACT, getString(R.string.edit_contact))) |                 RadioItem(ON_CLICK_EDIT_CONTACT, getString(R.string.edit_contact)) | ||||||
|  |             ) | ||||||
|  |  | ||||||
|             RadioGroupDialog(this@SettingsActivity, items, config.onContactClick) { |             RadioGroupDialog(this@SettingsActivity, items, config.onContactClick) { | ||||||
|                 config.onContactClick = it as Int |                 config.onContactClick = it as Int | ||||||
| @@ -181,11 +201,13 @@ class SettingsActivity : SimpleActivity() { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun getOnContactClickText() = getString(when (config.onContactClick) { |     private fun getOnContactClickText() = getString( | ||||||
|  |         when (config.onContactClick) { | ||||||
|             ON_CLICK_CALL_CONTACT -> R.string.call_contact |             ON_CLICK_CALL_CONTACT -> R.string.call_contact | ||||||
|             ON_CLICK_VIEW_CONTACT -> R.string.view_contact |             ON_CLICK_VIEW_CONTACT -> R.string.view_contact | ||||||
|             else -> R.string.edit_contact |             else -> R.string.edit_contact | ||||||
|     }) |         } | ||||||
|  |     ) | ||||||
|  |  | ||||||
|     private fun setupShowCallConfirmation() { |     private fun setupShowCallConfirmation() { | ||||||
|         settings_show_call_confirmation.isChecked = config.showCallConfirmation |         settings_show_call_confirmation.isChecked = config.showCallConfirmation | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     android:id="@+id/settings_scrollview" |     android:id="@+id/settings_scrollview" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content"> |     android:layout_height="wrap_content"> | ||||||
| @@ -11,348 +11,317 @@ | |||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:orientation="vertical"> |         android:orientation="vertical"> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/settings_color_customization_label" | ||||||
|  |             style="@style/SettingsSectionLabelStyle" | ||||||
|  |             android:layout_width="match_parent" | ||||||
|  |             android:layout_height="wrap_content" | ||||||
|  |             android:text="@string/color_customization" /> | ||||||
|  |  | ||||||
|  |         <LinearLayout | ||||||
|  |             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 |             <RelativeLayout | ||||||
|                 android:id="@+id/settings_customize_colors_holder" |                 android:id="@+id/settings_customize_colors_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_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_all_corners"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                 android:id="@+id/settings_customize_colors" |                     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> | ||||||
|  |         </LinearLayout> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/settings_general_settings_label" | ||||||
|  |             style="@style/SettingsSectionLabelStyle" | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|                 android:layout_centerVertical="true" |             android:text="@string/general_settings" /> | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/customize_colors" /> |         <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 | ||||||
|  |                 android:id="@+id/settings_use_english_holder" | ||||||
|  |                 style="@style/SettingsHolderCheckboxStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:background="@drawable/ripple_top_corners"> | ||||||
|  |  | ||||||
|  |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|  |                     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> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|             android:id="@+id/settings_use_english_holder" |                 android:id="@+id/settings_font_size_holder" | ||||||
|  |                 style="@style/SettingsHolderTextViewStyle" | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content" | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                 android:id="@+id/settings_use_english" |                     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="@null" |                     android:layout_below="@+id/settings_font_size_label" | ||||||
|                 android:clickable="false" |                     tools:text="@string/medium" /> | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/use_english_language" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|                 android:id="@+id/settings_manage_contact_fields_holder" |                 android:id="@+id/settings_manage_contact_fields_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_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                 android:id="@+id/settings_manage_contact_fields" |                     android:id="@+id/settings_manage_contact_fields_label" | ||||||
|                 android:layout_width="match_parent" |                     style="@style/SettingsTextLabelStyle" | ||||||
|  |                     android:layout_width="wrap_content" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|                 android:layout_centerVertical="true" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                     android:text="@string/manage_shown_contact_fields" /> |                     android:text="@string/manage_shown_contact_fields" /> | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|             android:id="@+id/settings_manage_tabs_holder" |                 android:id="@+id/settings_show_call_confirmation_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_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|             android:paddingTop="@dimen/activity_margin" |                     android:id="@+id/settings_show_call_confirmation" | ||||||
|             android:paddingEnd="@dimen/normal_margin" |                     style="@style/SettingsCheckboxStyle" | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:text="@string/show_call_confirmation_dialog" /> | ||||||
|  |  | ||||||
|  |             </RelativeLayout> | ||||||
|  |  | ||||||
|  |             <RelativeLayout | ||||||
|  |                 android:id="@+id/settings_show_private_contacts_holder" | ||||||
|  |                 style="@style/SettingsHolderCheckboxStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:background="@drawable/ripple_bottom_corners"> | ||||||
|  |  | ||||||
|  |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|  |                     android:id="@+id/settings_show_private_contacts" | ||||||
|  |                     style="@style/SettingsCheckboxStyle" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:text="@string/show_private_contacts" /> | ||||||
|  |  | ||||||
|  |             </RelativeLayout> | ||||||
|  |  | ||||||
|  |         </LinearLayout> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/settings_main_screen_label" | ||||||
|  |             style="@style/SettingsSectionLabelStyle" | ||||||
|  |             android:layout_width="match_parent" | ||||||
|  |             android:layout_height="wrap_content" | ||||||
|  |             android:text="@string/main_screen" /> | ||||||
|  |  | ||||||
|  |         <LinearLayout | ||||||
|  |             android:id="@+id/settings_main_screen_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_manage_shown_tabs_holder" | ||||||
|  |                 style="@style/SettingsHolderTextViewOneLinerStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 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_manage_tabs" |                     android:id="@+id/settings_manage_shown_tabs_label" | ||||||
|                 android:layout_width="match_parent" |                     style="@style/SettingsTextLabelStyle" | ||||||
|  |                     android:layout_width="wrap_content" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|                 android:layout_centerVertical="true" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                     android:text="@string/manage_shown_tabs" /> |                     android:text="@string/manage_shown_tabs" /> | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|                 android:id="@+id/settings_default_tab_holder" |                 android:id="@+id/settings_default_tab_holder" | ||||||
|  |                 style="@style/SettingsHolderTextViewStyle" | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content" | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingLeft="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingRight="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                     android:id="@+id/settings_default_tab_label" |                     android:id="@+id/settings_default_tab_label" | ||||||
|                 android:layout_width="match_parent" |                     style="@style/SettingsTextLabelStyle" | ||||||
|  |                     android:layout_width="wrap_content" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|                 android:layout_centerVertical="true" |  | ||||||
|                 android:layout_toStartOf="@+id/settings_default_tab" |  | ||||||
|                 android:paddingLeft="@dimen/medium_margin" |  | ||||||
|                 android:paddingRight="@dimen/medium_margin" |  | ||||||
|                     android:text="@string/default_tab_to_open" /> |                     android:text="@string/default_tab_to_open" /> | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                     android:id="@+id/settings_default_tab" |                     android:id="@+id/settings_default_tab" | ||||||
|                 android:layout_width="wrap_content" |                     style="@style/SettingsTextValueStyle" | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_alignParentEnd="true" |  | ||||||
|                 android:layout_marginEnd="@dimen/medium_margin" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_font_size_holder" |  | ||||||
|                     android:layout_width="match_parent" |                     android:layout_width="match_parent" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |                     android:layout_below="@+id/settings_default_tab_label" | ||||||
|             android:background="?attr/selectableItemBackground" |                     tools:text="@string/contacts_tab" /> | ||||||
|             android:paddingLeft="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingRight="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MyTextView |  | ||||||
|                 android:id="@+id/settings_font_size_label" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_centerVertical="true" |  | ||||||
|                 android:layout_toStartOf="@+id/settings_font_size" |  | ||||||
|                 android:paddingLeft="@dimen/medium_margin" |  | ||||||
|                 android:paddingRight="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/font_size" /> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MyTextView |  | ||||||
|                 android:id="@+id/settings_font_size" |  | ||||||
|                 android:layout_width="wrap_content" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_alignParentEnd="true" |  | ||||||
|                 android:layout_marginEnd="@dimen/medium_margin" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" /> |  | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|                 android:id="@+id/settings_on_contact_click_holder" |                 android:id="@+id/settings_on_contact_click_holder" | ||||||
|  |                 style="@style/SettingsHolderTextViewStyle" | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content" | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/bigger_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/bigger_margin"> |  | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                     android:id="@+id/settings_on_contact_click_label" |                     android:id="@+id/settings_on_contact_click_label" | ||||||
|                 android:layout_width="match_parent" |                     style="@style/SettingsTextLabelStyle" | ||||||
|  |                     android:layout_width="wrap_content" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|                 android:layout_centerVertical="true" |  | ||||||
|                 android:layout_toStartOf="@+id/settings_on_contact_click" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:paddingEnd="@dimen/medium_margin" |  | ||||||
|                     android:text="@string/on_contact_click" /> |                     android:text="@string/on_contact_click" /> | ||||||
|  |  | ||||||
|                 <com.simplemobiletools.commons.views.MyTextView |                 <com.simplemobiletools.commons.views.MyTextView | ||||||
|                     android:id="@+id/settings_on_contact_click" |                     android:id="@+id/settings_on_contact_click" | ||||||
|                 android:layout_width="wrap_content" |                     style="@style/SettingsTextValueStyle" | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_alignParentEnd="true" |  | ||||||
|                 android:layout_marginEnd="@dimen/small_margin" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_show_contact_thumbnails_holder" |  | ||||||
|                     android:layout_width="match_parent" |                     android:layout_width="match_parent" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |                     android:layout_below="@+id/settings_on_contact_click_label" | ||||||
|             android:background="?attr/selectableItemBackground" |                     tools:text="@string/contacts_tab" /> | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |  | ||||||
|                 android:id="@+id/settings_show_contact_thumbnails" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_contact_thumbnails" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_show_phone_numbers_holder" |  | ||||||
|             android:layout_width="match_parent" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |  | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |  | ||||||
|                 android:id="@+id/settings_show_phone_numbers" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_phone_numbers" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_show_only_contacts_with_numbers_holder" |  | ||||||
|             android:layout_width="match_parent" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |  | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |  | ||||||
|                 android:id="@+id/settings_show_only_contacts_with_numbers" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_only_contacts_with_numbers" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_start_with_surname_holder" |  | ||||||
|             android:layout_width="match_parent" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |  | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |  | ||||||
|                 android:id="@+id/settings_start_with_surname" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/start_name_with_surname" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|         </RelativeLayout> |  | ||||||
|  |  | ||||||
|         <RelativeLayout |  | ||||||
|             android:id="@+id/settings_show_call_confirmation_holder" |  | ||||||
|             android:layout_width="match_parent" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="@dimen/medium_margin" |  | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |  | ||||||
|                 android:id="@+id/settings_show_call_confirmation" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:background="@null" |  | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_call_confirmation_dialog" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|                 android:id="@+id/settings_show_dialpad_button_holder" |                 android:id="@+id/settings_show_dialpad_button_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_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_background"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|                     android:id="@+id/settings_show_dialpad_button" |                     android:id="@+id/settings_show_dialpad_button" | ||||||
|  |                     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="@null" |                     android:text="@string/show_dialpad_button" /> | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_dialpad_button" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|  |  | ||||||
|             <RelativeLayout |             <RelativeLayout | ||||||
|             android:id="@+id/settings_show_private_contacts_holder" |                 android:id="@+id/settings_show_only_contacts_with_numbers_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_marginTop="@dimen/medium_margin" |                 android:background="@drawable/ripple_bottom_corners"> | ||||||
|             android:background="?attr/selectableItemBackground" |  | ||||||
|             android:paddingStart="@dimen/normal_margin" |  | ||||||
|             android:paddingTop="@dimen/activity_margin" |  | ||||||
|             android:paddingEnd="@dimen/normal_margin" |  | ||||||
|             android:paddingBottom="@dimen/activity_margin"> |  | ||||||
|  |  | ||||||
|             <com.simplemobiletools.commons.views.MySwitchCompat |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|                 android:id="@+id/settings_show_private_contacts" |                     android:id="@+id/settings_show_only_contacts_with_numbers" | ||||||
|  |                     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="@null" |                     android:text="@string/show_only_contacts_with_numbers" /> | ||||||
|                 android:clickable="false" |  | ||||||
|                 android:paddingStart="@dimen/medium_margin" |  | ||||||
|                 android:text="@string/show_private_contacts" |  | ||||||
|                 app:switchPadding="@dimen/medium_margin" /> |  | ||||||
|  |  | ||||||
|             </RelativeLayout> |             </RelativeLayout> | ||||||
|         </LinearLayout> |         </LinearLayout> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/settings_list_view_label" | ||||||
|  |             style="@style/SettingsSectionLabelStyle" | ||||||
|  |             android:layout_width="match_parent" | ||||||
|  |             android:layout_height="wrap_content" | ||||||
|  |             android:text="@string/list_view" /> | ||||||
|  |  | ||||||
|  |         <LinearLayout | ||||||
|  |             android:id="@+id/settings_list_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 | ||||||
|  |                 android:id="@+id/settings_show_contact_thumbnails_holder" | ||||||
|  |                 style="@style/SettingsHolderCheckboxStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:background="@drawable/ripple_top_corners"> | ||||||
|  |  | ||||||
|  |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|  |                     android:id="@+id/settings_show_contact_thumbnails" | ||||||
|  |                     style="@style/SettingsCheckboxStyle" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:text="@string/show_contact_thumbnails" /> | ||||||
|  |  | ||||||
|  |             </RelativeLayout> | ||||||
|  |  | ||||||
|  |             <RelativeLayout | ||||||
|  |                 android:id="@+id/settings_show_phone_numbers_holder" | ||||||
|  |                 style="@style/SettingsHolderCheckboxStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:background="@drawable/ripple_background"> | ||||||
|  |  | ||||||
|  |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|  |                     android:id="@+id/settings_show_phone_numbers" | ||||||
|  |                     style="@style/SettingsCheckboxStyle" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:text="@string/show_phone_numbers" /> | ||||||
|  |  | ||||||
|  |             </RelativeLayout> | ||||||
|  |  | ||||||
|  |             <RelativeLayout | ||||||
|  |                 android:id="@+id/settings_start_name_with_surname_holder" | ||||||
|  |                 style="@style/SettingsHolderCheckboxStyle" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:background="@drawable/ripple_bottom_corners"> | ||||||
|  |  | ||||||
|  |                 <com.simplemobiletools.commons.views.MyAppCompatCheckbox | ||||||
|  |                     android:id="@+id/settings_start_name_with_surname" | ||||||
|  |                     style="@style/SettingsCheckboxStyle" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:text="@string/start_name_with_surname" /> | ||||||
|  |  | ||||||
|  |             </RelativeLayout> | ||||||
|  |         </LinearLayout> | ||||||
|  |     </LinearLayout> | ||||||
| </ScrollView> | </ScrollView> | ||||||
|   | |||||||
| @@ -6,36 +6,38 @@ | |||||||
|         android:icon="@drawable/ic_search_vector" |         android:icon="@drawable/ic_search_vector" | ||||||
|         android:title="@string/search" |         android:title="@string/search" | ||||||
|         app:actionViewClass="androidx.appcompat.widget.SearchView" |         app:actionViewClass="androidx.appcompat.widget.SearchView" | ||||||
|         app:showAsAction="collapseActionView|always"/> |         app:showAsAction="collapseActionView|always" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/sort" |         android:id="@+id/sort" | ||||||
|         android:icon="@drawable/ic_sort_vector" |         android:icon="@drawable/ic_sort_vector" | ||||||
|         android:title="@string/sort_by" |         android:title="@string/sort_by" | ||||||
|         app:showAsAction="always"/> |         app:showAsAction="always" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/filter" |         android:id="@+id/filter" | ||||||
|         android:icon="@drawable/ic_filter_vector" |         android:icon="@drawable/ic_filter_vector" | ||||||
|         android:title="@string/filter" |         android:title="@string/filter" | ||||||
|         app:showAsAction="always"/> |         app:showAsAction="always" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/dialpad" |         android:id="@+id/dialpad" | ||||||
|         android:icon="@drawable/ic_dialpad_vector" |         android:icon="@drawable/ic_dialpad_vector" | ||||||
|         android:title="@string/dialpad" |         android:title="@string/dialpad" | ||||||
|         app:showAsAction="ifRoom"/> |         app:showAsAction="ifRoom" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/import_contacts" |         android:id="@+id/import_contacts" | ||||||
|         android:title="@string/import_contacts_from_vcf" |         android:title="@string/import_contacts_from_vcf" | ||||||
|         app:showAsAction="never"/> |         app:showAsAction="never" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/export_contacts" |         android:id="@+id/export_contacts" | ||||||
|         android:title="@string/export_contacts_to_vcf" |         android:title="@string/export_contacts_to_vcf" | ||||||
|         app:showAsAction="never"/> |         app:showAsAction="never" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/settings" |         android:id="@+id/settings" | ||||||
|  |         android:icon="@drawable/ic_settings_cog_vector" | ||||||
|         android:title="@string/settings" |         android:title="@string/settings" | ||||||
|         app:showAsAction="never"/> |         app:showAsAction="ifRoom" /> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/about" |         android:id="@+id/about" | ||||||
|  |         android:icon="@drawable/ic_info_vector" | ||||||
|         android:title="@string/about" |         android:title="@string/about" | ||||||
|         app:showAsAction="never"/> |         app:showAsAction="ifRoom" /> | ||||||
| </menu> | </menu> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user