Search code examples
android-tvleanback

VerticalGridFragment title weird position


I'm playing around with leanback-v17 and I have a strange bug.

The title of a VerticalGridFragment should be positioned to the right, as in this example from googlesamples/leanback-showcase:

VerticalGridFragment in leanback-showcase app

But in mine it looks like this:

enter image description here

I don't understand why the title is located here and not to the right

I placed all the relevant (I hope) files in this gist. What have I missed?


Solution

  • Okay I resolved the issue by removing the android:supportsRtl="true" attribute from AndroidManifest.xml.

    EDIT: This was a bug in the leanback library. See Issue 213461. The bug has been resolved in support library v24.1.0. You no longer need to remove supportsRtl from the manifest.