0

Fix screen reader behavior on dividers

Demo: https://screencast.googleplex.com/cast/NjQ5NzI0NzQ3MzY5Njc2OHwxM2UzMTJkOS0wZQ

Fixed: 407755475
Change-Id: I997aa03a31f4d55f5bdc25260f992a3759d7ea5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6513948
Commit-Queue: Jenna Himawan <jhimawan@google.com>
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1455822}
This commit is contained in:
Jenna Himawan
2025-05-05 11:05:49 -07:00
committed by Chromium LUCI CQ
parent 05202abd2f
commit 1157cf7a7b
2 changed files with 17 additions and 0 deletions
ui/android

@ -268,6 +268,7 @@ android_resources("ui_java_resources") {
"java/res/drawable/transition_expand_less_expand_more_black_24dp.xml",
"java/res/drawable/transition_expand_more_expand_less_black_24dp.xml",
"java/res/font/accent_font.xml",
"java/res/layout-v28/list_section_divider.xml",
"java/res/layout/custom_toast_layout.xml",
"java/res/layout/dropdown_item.xml",
"java/res/layout/horizontal_divider.xml",

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/list_section_divider_padding"
android:paddingBottom="@dimen/list_section_divider_padding"
android:focusable="false"
android:screenReaderFocusable="false">
<include layout="@layout/horizontal_divider" />
</FrameLayout>