-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Android AlertFragment Title Accessibility (#45395)
Summary: Pull Request resolved: #45395 ## Changelog: [Android] [Fixed] - Fix AlertDialog title accessibility Pull Request resolved: #45048 Making title accessible for android AlertFragment Reviewed By: blavalla, susnchen Differential Revision: D58684576 fbshipit-source-id: 83c8cfe9e7aacdf587d325d957694c3c7daa360c
- Loading branch information
1 parent
bac5f1f
commit 80a3ed7
Showing
3 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/react-native/ReactAndroid/src/main/res/views/alert/layout/alert_title_layout.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical|start" | ||
android:orientation="horizontal" | ||
android:paddingStart="?android:attr/dialogPreferredPadding" | ||
android:paddingTop="18dp" | ||
android:paddingEnd="?android:attr/dialogPreferredPadding"> | ||
|
||
<TextView | ||
android:id="@+id/alert_title" | ||
style="?android:attr/windowTitleStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="end" | ||
android:singleLine="true" | ||
android:textAlignment="viewStart" | ||
android:textAppearance="?android:attr/textAppearanceMedium" | ||
android:textSize="18sp" /> | ||
|
||
</LinearLayout> |