s5v
s5v

Reputation: 505

BlackBerry:List Field-How to Highlight only the text instead of the whole field

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

Answers (1)

jprofitt
jprofitt

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

Related Questions