Is it possible to have a black background around each letter (not for the whole word) in a word in a TextView?
Asked
Active
Viewed 973 times
1 Answers
3
The only way I can think of is by using html in your textView
.
Put your text in HTML and then do something like this
TextView contactWeb1 = (TextView) findViewById(R.id.contactWeb1);
String desc = "<font color=\"red\"><a href='http://www.mysite.com/'>Visit my site</a></font>";
contactWeb1.setText(Html.fromHtml(desc));
The above code is from the 3rd link
Here are some related questions
-
I can't use "style" inside that html ? I have tried to "tvText.setText(android.text.Html.fromHtml("bla"));" in order to put black border around each letter but it didn't work. – ohadinho Aug 22 '12 at 12:30
-
I doubt android has a css parser, so try to use only the ancient `` tag – Gautam Aug 22 '12 at 15:42