android - Processing large Spanned objects with TextView (setText) -
well, give bit of history on project - i'm parsing string that's 100k in child thread, , returning spanned object html.fromhtml().
the issue when returns main thread - when trying settext using spanned created in thread, takes quite long time processing spanned object displayable format (settext).
i process in child thread, unfortunately, since related ui, can't - has on main thread. so, question whether there way process spanned interpreted settext, doesn't spend lot of time on main thread processing after child thread has finished.
testquestionsexplanations.settext(spannedexplanationsobj);
my biggest issue locks main thread down doing this.
i found work around problem.
instead of sending whole spanned object , getting processed onto textview @ once, i'm sending smaller pieces, , appending them textview.
this way progressdialog doesn't lock - it's jerky, it's better not moving @ all.
Comments
Post a Comment