AndroidTV - change color of rows header [BrowseFragment]

Viewed 2348

I found something similar in SO: android-tv Changing text color and font of browse fragment rows header

Following topic answer I came up with this:

<style name="CustomRowHeaderStyle" parent="Widget.Leanback.Row.Header">
    <item name="android:textColor">@color/red</item>
</style>

But this changes not only text that appears above the rows, but also navigation drawer text. I would love to get answer for the first one (having different color for navigation drawer item headers).

2 Answers

<item name="rowHeaderStyle">@style/header_style</item> in your main activity style

`  <style name="header_style">
     <item name="android:layout_marginStart">5dp</item>
    <item name="android:textSize">18sp</item>
    <item name="android:textColor">@color/white</item>
</style>`
Related