TextView in bold is the simplest way to express the following: viki textView.setText (Html.fromHtml ("<b> string </ b>")); viki However, this approach has some overhead. Bold is used in a ListView using string allows this method to scroll the screen does not move smoothly. All items in advance to re-create a non-string representation of eopgetjiman be a problem if the string would change according to the content of each view in each newly created string with no choice but to apply the style. That means as long as the number of items to be displayed on the screen of the Html class means that the parsing process is performed. As a result, the overhead of parsing because the scrolling is not smooth. As an alternative, you can use SpannableStringBuilder. Usage is as follows:
textView.setText (sb); The same applies to the fact Html class use. Html tags can be used, but with the conversion process, the parsing process is much more overhead because it stretches. Of course, if you are using a string in a variety of styles in the way of applying one style may be more efficient than the Html class ListView only if made on each item separately for each parsing process efficiency is not good because you can flowerbed. Source: viki http://anddev.tistory.com/49
"Android> Tip 'category added another desktop shortcut to the Android Post (0) 2011/12/15 RGB 16 hex color palette viki (0) 2011/12/05 TextView bold in writing (0) 2011 agile Practices (0) 2011/10/18 Intent TYPE utilization (2). rank is 2011 smartphone (0) 2011
EpoNg
Oracle (1)
Recent Comment Good quality polarized sungl ... optiopvob 07/13 JJKKJJHUUU888 [url = http:// ... zopktvpqwkgb viki 07/12 c4123@naver.com trying to study ... I'm begging you ..! 9.7 Ieft clean it well .. heh heh 06/19 cnrhddl3 Shoes infinite reflections. Code no 06/11
Tistory
Login
No comments:
Post a Comment