Reputation: 505
I have a list field displaying text, and I want only the text to display as focused when the field is selected. Instead of the whole field being highlighted in blue, I want only the text to be highlighted.
I have found methods to change the highlight color, but not how to limit the area being highlighted.
Upvotes: 0
Views: 284
Reputation: 10974
I haven't tried this, but you should be able to do just override drawFocus()
to do nothing (that will get rid of the highlighting), and then in your drawListRow()
check if the row is the selected row, and if that's the case draw the text a different color.
Upvotes: 1