使用AndroidTV的leanback库更改PlaybackTransportControl操作按钮的焦点颜色。

huangapple go评论79阅读模式
英文:

Change the focus color of PlaybackTransportControl action buttons using the leanback library on AndroidTV

问题

I'm stuck in trying to change the focus color of the action buttons in the PlaybackTransportControl using the leanback library. I've tried looking up how this would be possible and looked up how I can override this, but to no avail. If anyone has anyway where I can edit my action button's focus color please let me know.

英文:

Currently I'm stuck in trying to change the focus color of the action buttons in the PlaybackTransportControl using the leanback library. I've tried looking up how this would be possible and looked up how I can override this, but to no avail. If anyone has anyway where I can edit my action button's focus color please let me know.

答案1

得分: 0

所以我找到了这个问题的答案.. 你确实需要覆盖一个特定的文件,该文件提供了PlaybackTransport Control Action按钮的焦点颜色。
如果你覆盖lb_control_button_secondary.xml,那将帮助你选择另一种颜色来设置焦点。

希望这对其他人有所帮助!

英文:

So I found the answer to this question.. you do need to override a certain file that is giving the focus color of the PlaybackTransport Control Action buttons.
If you override the lb_control_button_secondary.xml, that'll help you pick another color for your focus.

Hope this helped anyone else!

huangapple
  • 本文由 发表于 2020年8月11日 21:28:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/63359185.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定