Search code examples
leanback

start padding from RowsSupportFragment in tv leanback


l

is there any way to remove start padding from RowsSupportFragment as shown in arrows

following style does not remove start padding.

<style name="SearchTheme" parent="@style/Theme.Leanback.Browse">
    <item name="rowHeaderDockStyle">@style/RowHeaderDock</item>
    <item name="rowHorizontalGridStyle">@style/HorizentalGridStyle</item>
</style>
<style name="RowHeaderDock">
    <item name="android:paddingStart">0dp</item>
</style>
<style name="HorizentalGridStyle" parent="Widget.Leanback.Row.HorizontalGridView">
    <item name="android:paddingStart">0dp</item>
</style>

Solution

  • Add this statement to your dimens.xml:

    <dimen name="lb_browse_padding_start">0dp</dimen>