In android tv using leanback library, we pass button text as CharSequence to populate action items in details overview : new Action(long id, CharSequence label1, CharSequence label2, Drawable icon)
A little context here: if you visit a details page of a movie (say, Arrival) you will notice action buttons: "watch trailer", "rent for $10.00", "own for $20.00"
I am looking into ways to change text-color / text-style of these action items, but have been unsuccessful so far.
Any ideas?
Here is a snippet of my code:
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(price);
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.RED), 0, spannableStringBuilder.length(), 0);
addDetailsOverviewRowButton(1, "OWN FROM", Html.fromHtml(spannableStringBuilder.toString()), getResources().getDrawable(R.drawable.xyz, null));