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

[Dialogs] Title is aligned to end in RTL

Đang mở
#2,575 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@afohrman đang làm issue này rồi.

Từ ngày 8/3/2022.

bug Issue: Internationalization Widget: Dialog
Ngôn ngữ chính
Java
Star
17.4k
Fork
3.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.