material-components / material-components/material-components-android

[Dialogs] Title is aligned to end in RTL

Open
#2,575 1 comment 0 reactions 1 assignee View on GitHub

@afohrman is already working on this.

Since Mar 8, 2022.

bug Issue: Internationalization Widget: Dialog
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**

Material Alert Dialog Title is aligned to the end (left) in the RTL mode while the body of the alert is correctly aligned .

**Expected behavior:**

The title should be aligned to the start (Right) in the RTL.

![Issue Material desgin](https://user-images.githubusercontent.com/4747488/155197567-18a0b512-c7ea-467f-ba24-516331731c06.png)

**Source code:**
`
MaterialAlertDialogBuilder(requireContext())
.setTitle("إلغاء العملية")
.setMessage("هل انت متأكد من انك تريد إلغاء عملية تحميل ${item.title} ؟ ")
.setCancelable(false)
.setPositiveButton(R.string.ok_label) { dialog, _ ->
//TODO:: Do some work
dialog.dismiss()
}
.setNegativeButton(R.string.cancel) { dialog, _ ->
dialog.dismiss()
}
.show()
`

**Android API version:**
minSdk 19
targetSdk 31

**Material Library version:**

1.6.0-alpha02

**Device:**

Android Emulator Pixel 3a API 30 With Google Play | x86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.