SimpleRatingBar
SimpleRatingBar copied to clipboard
no RTL support
when swiping on rating control with RTL screen the behaviour is not performing correctly as LTR screen
Hi @Meqdadi, Thanks for raising this issue, I'll have a look.
sadly, for now there is no built in sollution in library but you can try to rotate view, it seems to be working fine
class RTLRatingBar @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : BaseRatingBar(context, attrs, defStyleAttr) {
init {
if (TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) == ViewCompat.LAYOUT_DIRECTION_RTL) {
rotationY = 180f
}
}
}