adding some contentdescriptions
This commit is contained in:
parent
9c0e0273c0
commit
442adad92b
|
@ -63,13 +63,18 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||||
fragment_placeholder_2?.underlineText()
|
fragment_placeholder_2?.underlineText()
|
||||||
|
|
||||||
when {
|
when {
|
||||||
|
this is ContactsFragment -> {
|
||||||
|
fragment_fab.contentDescription = activity.getString(R.string.create_new_contact)
|
||||||
|
}
|
||||||
this is FavoritesFragment -> {
|
this is FavoritesFragment -> {
|
||||||
fragment_placeholder.text = activity.getString(R.string.no_favorites)
|
fragment_placeholder.text = activity.getString(R.string.no_favorites)
|
||||||
fragment_placeholder_2.text = activity.getString(R.string.add_favorites)
|
fragment_placeholder_2.text = activity.getString(R.string.add_favorites)
|
||||||
|
fragment_fab.contentDescription = activity.getString(R.string.add_favorites)
|
||||||
}
|
}
|
||||||
this is GroupsFragment -> {
|
this is GroupsFragment -> {
|
||||||
fragment_placeholder.text = activity.getString(R.string.no_group_created)
|
fragment_placeholder.text = activity.getString(R.string.no_group_created)
|
||||||
fragment_placeholder_2.text = activity.getString(R.string.create_group)
|
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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/main_holder"
|
android:id="@+id/main_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -14,13 +13,13 @@
|
||||||
app:tabIndicatorColor="@android:color/white"
|
app:tabIndicatorColor="@android:color/white"
|
||||||
app:tabIndicatorHeight="2dp"
|
app:tabIndicatorHeight="2dp"
|
||||||
app:tabMinWidth="150dp"
|
app:tabMinWidth="150dp"
|
||||||
app:tabSelectedTextColor="@android:color/white"/>
|
app:tabSelectedTextColor="@android:color/white" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyViewPager
|
<com.simplemobiletools.commons.views.MyViewPager
|
||||||
android:id="@+id/viewpager"
|
android:id="@+id/viewpager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_below="@+id/main_tabs_holder"/>
|
android:layout_below="@+id/main_tabs_holder" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/main_dialpad_button"
|
android:id="@+id/main_dialpad_button"
|
||||||
|
@ -30,8 +29,9 @@
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_marginBottom="@dimen/activity_margin"
|
android:layout_marginBottom="@dimen/activity_margin"
|
||||||
android:background="@drawable/circle_background"
|
android:background="@drawable/circle_background"
|
||||||
|
android:contentDescription="@string/dialpad"
|
||||||
android:elevation="@dimen/medium_margin"
|
android:elevation="@dimen/medium_margin"
|
||||||
android:padding="@dimen/activity_margin"
|
android:padding="@dimen/activity_margin"
|
||||||
android:src="@drawable/ic_dialpad_vector"/>
|
android:src="@drawable/ic_dialpad_vector" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
Loading…
Reference in New Issue