Styled text in TextView
The easiest way of having styled text in a TextView is to use HTML and it is very easy to do it: mTextView.setText(Html.fromHtml(“This is a < b >bold< /b > and < i >italics< /i > styled textview!”));
The easiest way of having styled text in a TextView is to use HTML and it is very easy to do it: mTextView.setText(Html.fromHtml(“This is a < b >bold< /b > and < i >italics< /i > styled textview!”));
It’s been a while since I last posted something about android programming. From my point of view, this is a great thing, there is an untold story lying here! :) Working with the Android UI requires a lot of XML “syntaxing”. (I’m sorry, I do not like the use of the words “programming” or “develpment” [...]
The use of startActivityForResult is a very common and useful practice to do things within your application. But it suffers from a architecture issue, very rare and difficult to find out. The onActivityResult method gets called immediately after the startActivityForResult. This happens because the started activity lacks the correct launchMode which must be set to [...]
When a user navigates a website through a webview, pressing the back button will finish the current activity, instead of going back in the browsing history. You can change this behavior like this:
Always remember, when you set a listview’s divider to a color, to set the divider height. Also known as “Why does the listview is not showing the divider”