¡@

Home 

2014/10/16 ¤W¤È 08:22:26

android Programming Glossary: reloaddata

How to justify text on a TextView made easy- Android

http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android

addresses Problems when setting transparent background and loading UTF 8 strings into the view. See the comments in reloadData for details. public class JustifiedTextView extends WebView private String core html body style 'text align justify color.. attrs super context attrs this.setWebChromeClient new WebChromeClient public void setText String s this.text s reloadData @SuppressLint NewApi private void reloadData loadData ... has a bug showing utf 8 correctly. That's why we need to set it.. new WebChromeClient public void setText String s this.text s reloadData @SuppressLint NewApi private void reloadData loadData ... has a bug showing utf 8 correctly. That's why we need to set it first. this.getSettings .setDefaultTextEncodingName..