hi all, i was wondering if there is a way to set p...
# android
k
hi all, i was wondering if there is a way to set part of text in TextView to bold/italic, without have to use .kt file to do it? all the resources that i found, need the use of .kt file to do it. in example it should be like this: a TextView with text value of "Hello World", i would like to make the word "Hello" to be bold or italic, but i want to do it simply in the xml file, not in the kt file.
b
String resources support html tags. So <b>Hello</b> and work directly from xml
k
just tested it on android:text and text:tools, both are not working. while
\n
is still working as line break, but
<b></b>
are not working.
m
Use spannableString builder