henryblue / TvRecyclerView

A custom RecyclerView for Android TV end
Apache License 2.0
7 stars 4 forks source link

How to change text color on onItemViewFocusChanged? #34

Closed grahaisw closed 5 years ago

grahaisw commented 5 years ago

Hi i'm getting stuck on this, i need to change the text color of my item when getting focus.

I have try onFocusChange on my CustomViewHolder, but nothing happen when the focus is changed.

Can anybody help?is it possible to change the element text color on onItemViewFocusChanged?

Thank you in advance.

henryblue commented 5 years ago

yes, you can change text color on "onItemViewFocusChanged" Because the default Recyclerview will consume the focus, if you want to change in you customViewHolder, you can make isAutoProcessFocus attr false.