Skip to main content

RTL support in RecyclerView

As I was implementing RTL support for SuperSLiM I discovered that child views of the RecyclerView are not inheriting the current text or layout direction. I poked around for a bit trying to figure out what is going on but I decided to do the quick fix for the example app and move on.

So for your views inflated in a RecyclerView.Adapter, just add
android:textDirection="locale"
or
android:layoutDirection="locale"
to pick up the correct layout direction. 

Comments

Post a Comment

Popular posts from this blog

SuperSLiM 'should've been a weekly' update