Provide content label for splash screen view.

Add content description for app icon and branding image on the splash
screen view.

Bug: 180974034
Test: build/flash
Change-Id: I2c14492463605d7fc83311d8d6f281896ad75a6e
This commit is contained in:
wilsonshih
2021-02-25 15:18:22 +08:00
parent 8632838c50
commit ff6fe21375
2 changed files with 10 additions and 4 deletions

View File

@@ -21,14 +21,16 @@
android:orientation="vertical">
<View android:id="@+id/splashscreen_icon_view"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center"/>
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:contentDescription="@string/splash_screen_view_icon_description"/>
<View android:id="@+id/splashscreen_branding_view"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="60dp"/>
android:layout_marginBottom="60dp"
android:contentDescription="@string/splash_screen_view_branding_description"/>
</android.window.SplashScreenView>

View File

@@ -5849,4 +5849,8 @@ ul.</string>
<!--- Label for notification channel for all sensor privacy related notifications. [CHAR LIMIT=NONE] -->
<string name="sensor_privacy_notification_channel_label">Sensor Privacy</string>
<!-- Content description for the icon on the splash screen. [CHAR LIMIT=50] -->
<string name="splash_screen_view_icon_description">Application icon</string>
<!-- Content description for the branding image on the splash screen. [CHAR LIMIT=50] -->
<string name="splash_screen_view_branding_description">Application branding image</string>
</resources>