This refactors the icon row on cards to switch all icons (except O-Counter icon & text) to a single TextView using a SpannableString to set the icon font when needed.
This will help performance in two ways: 1) much fewer views to inflate/layout and 2) fewer re-layouts since the views don't need to be hidden/shown
My non-scientific estimate loading a ten row main page is ~30% faster, so this seems pretty significant!
This refactors the icon row on cards to switch all icons (except O-Counter icon & text) to a single
TextView
using aSpannableString
to set the icon font when needed.This will help performance in two ways: 1) much fewer views to inflate/layout and 2) fewer re-layouts since the views don't need to be hidden/shown
My non-scientific estimate loading a ten row main page is ~30% faster, so this seems pretty significant!