Hi all,
Ever since I added conditional text formatting on my list items I've noticed
a performance drop. It's still usable but I'm somewhat obsessive about
performance/experience so I would really like to tweak my approach as best I
can. The following snippet is how I'm achieving my conditional
1. w.getInstructions().setTextColor( 0xFFBDBEBD ); appears to be the
same in both branches of your if(), meaning it probably does not need
to be called every time.
2. Create private data members for new StyleSpan( Typeface.NORMAL )
and new StyleSpan( Typeface.BOLD ) and reference those data
Thanks Mark,
I knew it had to be simpler. I've turfed all the Spannable stuff ...almost
flawless now. Only one slight stutter on fast fling. Next stop is addressing
nested layout in the row xml ...
if( w.state.equalsIgnoreCase( Tasks.STATE_READ ))
{
3 matches
Mail list logo