diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2017-03-01 17:07:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 17:07:01 -0500 |
commit | ef82095a21b46916cc5a69e0c6996e599e550a80 (patch) | |
tree | dbc415cd2665d4c77d5b65f508ab18a139665d39 /platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml | |
parent | 95fdf3ca0d52acfbee62f677c5fef2e4e180f720 (diff) | |
download | qtlocation-mapboxgl-ef82095a21b46916cc5a69e0c6996e599e550a80.tar.gz |
[android] - add accessibility support to the Android SDK by applying content descriptions on Views overlain on the map. (#8230)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml index 9810e8900b..e6a2677785 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml +++ b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml @@ -5,30 +5,34 @@ android:id="@+id/surfaceView" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone" /> + android:contentDescription="@null" + android:visibility="gone"/> <FrameLayout android:id="@+id/markerViewContainer" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/transparent" /> + android:background="@android:color/transparent" + android:contentDescription="@null"/> <com.mapbox.mapboxsdk.maps.widgets.MyLocationView android:id="@+id/userLocationView" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:contentDescription="@string/mapbox_myLocationViewContentDescription"/> <com.mapbox.mapboxsdk.maps.widgets.CompassView android:id="@+id/compassView" android:layout_width="wrap_content" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:contentDescription="@string/mapbox_compassContentDescription"/> <ImageView android:id="@+id/logoView" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:contentDescription="@string/mapbox_iconContentDescription" - android:src="@drawable/mapbox_logo_icon" /> + android:contentDescription="@null" + android:src="@drawable/mapbox_logo_icon"/> <ImageView android:id="@+id/attributionView" @@ -39,6 +43,6 @@ android:clickable="true" android:contentDescription="@string/mapbox_attributionsIconContentDescription" android:padding="7dp" - android:src="@drawable/mapbox_info_bg_selector" /> + android:src="@drawable/mapbox_info_bg_selector"/> </merge> |