Accessibility content description for quick action dialog buttons
This commit is contained in:
parent
d1e8cb5b61
commit
9c1f4fb28c
5 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
android:layout_alignParentRight="true"
|
||||
android:layout_margin="16dp"
|
||||
android:src="@drawable/ic_action_plus"
|
||||
android:contentDescription="@string/quick_action_new_action"
|
||||
app:backgroundTint="@color/dashboard_blue"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -73,6 +73,7 @@
|
|||
android:background="?attr/selectableItemBackground"
|
||||
android:scaleType="centerInside"
|
||||
android:tint="?attr/secondary_icon_color"
|
||||
android:contentDescription="@string/action_delete"
|
||||
android:src="@drawable/ic_action_remove_dark"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
android:background="?attr/selectableItemBackground"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/ic_action_remove_dark"
|
||||
android:contentDescription="@string/action_delete"
|
||||
android:tint="?attr/secondary_icon_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -155,6 +155,8 @@ public class CreateEditActionDialog extends DialogFragment {
|
|||
R.drawable.abc_ic_ab_back_mtrl_am_alpha,
|
||||
R.color.color_white));
|
||||
|
||||
toolbar.setNavigationContentDescription(R.string.access_shared_string_navigate_up);
|
||||
|
||||
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
|
@ -111,6 +111,7 @@ public class QuickActionListFragment extends BaseOsmAndFragment implements Quick
|
|||
Drawable back = getMyApplication().getIconsCache().getIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
|
||||
back.setColorFilter(ContextCompat.getColor(getContext(), R.color.color_white), PorterDuff.Mode.MULTIPLY);
|
||||
toolbar.setNavigationIcon(back);
|
||||
toolbar.setNavigationContentDescription(R.string.access_shared_string_navigate_up);
|
||||
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
Loading…
Reference in a new issue