mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	adding some contentdescriptions
This commit is contained in:
		| @@ -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) | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <RelativeLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     android:id="@+id/main_holder" | ||||
|     android:layout_width="match_parent" | ||||
| @@ -30,6 +29,7 @@ | ||||
|         android:layout_centerHorizontal="true" | ||||
|         android:layout_marginBottom="@dimen/activity_margin" | ||||
|         android:background="@drawable/circle_background" | ||||
|         android:contentDescription="@string/dialpad" | ||||
|         android:elevation="@dimen/medium_margin" | ||||
|         android:padding="@dimen/activity_margin" | ||||
|         android:src="@drawable/ic_dialpad_vector" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user