Created
May 21, 2010 15:53
-
-
Save jemerick/409005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a spannable string | |
SpannableString spanstring = new SpannableString("bold\ntumblelog"); | |
// make the first 4 chars bold | |
spanstring.setSpan(new StyleSpan(Typeface.BOLD), 0, 4, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); | |
// set the text of the button | |
sendButton.setText(spanstring); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment