summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2021-02-25 15:18:22 +0800
committer wilsonshih <wilsonshih@google.com> 2021-02-26 10:35:36 +0800
commitff6fe213759a276b29ef3993e0ffb5525a10052f (patch)
treea5da4544a5d4dcf8f45091001400216894cdd594
parent8632838c5035dee35aafd24d61586fe50f27913c (diff)
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
-rw-r--r--core/res/res/layout/splash_screen_view.xml10
-rw-r--r--core/res/res/values/strings.xml4
2 files changed, 10 insertions, 4 deletions
diff --git a/core/res/res/layout/splash_screen_view.xml b/core/res/res/layout/splash_screen_view.xml
index 513da5e431e5..e6d724f1ecb2 100644
--- a/core/res/res/layout/splash_screen_view.xml
+++ b/core/res/res/layout/splash_screen_view.xml
@@ -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> \ No newline at end of file
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 3505dee134c0..8f33a95a8420 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -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>