You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GridSpanMarginDecoration now adds the horizontal margin to the items left and right as full or semi, based on the first, end, or middle position in a row. But in RTL layouts the values that have been used for left and right should be swapped.
For instance when we define 16dp as horizontal margin between items, the first position in gridlayout should have margin as below:
in LTR -> left=16 , right =8
in RTL -> left = 8, right = 16
The text was updated successfully, but these errors were encountered:
All decorators use specific left/right values instead of start/end.
Typically left/right means exactly that, it doesn't change depending on LTR or RTL.
I could add support for start/end instead and add an extra RTL flag that you can get from the LayoutManager.
GridSpanMarginDecoration now adds the horizontal margin to the items left and right as full or semi, based on the first, end, or middle position in a row. But in RTL layouts the values that have been used for left and right should be swapped.
For instance when we define 16dp as horizontal margin between items, the first position in gridlayout should have margin as below:
in LTR -> left=16 , right =8
in RTL -> left = 8, right = 16
The text was updated successfully, but these errors were encountered: