From 442adad92b71dbde909734878df818cca0565b77 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 13 Mar 2022 22:13:52 +0100 Subject: [PATCH] adding some contentdescriptions --- .../contacts/pro/fragments/MyViewPagerFragment.kt | 5 +++++ app/src/main/res/layout/activity_main.xml | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt index 7e0a9ca3..ed425cdd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt @@ -63,13 +63,18 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) fragment_placeholder_2?.underlineText() when { + this is ContactsFragment -> { + fragment_fab.contentDescription = activity.getString(R.string.create_new_contact) + } this is FavoritesFragment -> { fragment_placeholder.text = activity.getString(R.string.no_favorites) fragment_placeholder_2.text = activity.getString(R.string.add_favorites) + fragment_fab.contentDescription = activity.getString(R.string.add_favorites) } this is GroupsFragment -> { fragment_placeholder.text = activity.getString(R.string.no_group_created) fragment_placeholder_2.text = activity.getString(R.string.create_group) + fragment_fab.contentDescription = activity.getString(R.string.create_group) } } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 553c88e9..2c3e27f4 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,6 +1,5 @@ - + app:tabSelectedTextColor="@android:color/white" /> + android:layout_below="@+id/main_tabs_holder" /> + android:src="@drawable/ic_dialpad_vector" />