maxkeppeler / sheets

⭐ ‎‎‎‏‏‎ ‎Offers a range of beautiful sheets (dialogs & bottom sheets) for quick use in your project. Includes many ways to customize sheets.
https://maxkeppeler.github.io/sheets/
Apache License 2.0
923 stars 77 forks source link

Support android:supportsRtl="false" #47

Closed braydentraas closed 3 years ago

braydentraas commented 3 years ago

Describe the bug If RTL support is disabled application-wide, text alignment doesn't work properly (text is all left-aligned, android:textAlignment="center" is ignored)

This can be resolved by setting the android:gravity="center" attribute on SheetContent items (and probably others).

Library Version: 2.0.0

To Reproduce Steps to reproduce the behavior:

  1. Set android:supportsRtl="false" in Manifest.xml
  2. Display an OptionsSheet grid

Expected behavior Option label text should be centered.

maxkeppeler commented 3 years ago

Will look after this & fix it on the weekend, thanks for letting me know!