android / codelab-constraint-layout

Constraint Layout Codelab
https://codelabs.developers.google.com/codelabs/constraint-layout/
Apache License 2.0
469 stars 243 forks source link

setLayoutDirection - RTL doesnt work #93

Open Mzitow opened 4 years ago

Mzitow commented 4 years ago

I was using constraint layout for my RecyclerView Item, and had to change my layout in the OnCreateViewHolder i had something like:

if (requestRTL) itemView.setLayoutDirection(View.LAYOUT_DIRECTION_RTL);

It worked for version 1.1.0 but after updating the lib to 2.2.0, it failed. I realized this late and had to change back to 1.1.0. Maybe its a bad practice? or is this a bug?