java - How to make a TextView bold? -
i want able make textview bold. how setting it's appearance (i need in code):
nametext.settextappearance(getapplicationcontext(), r.style.bluetext); pricetext.settextappearance(getapplicationcontext(), r.style.bluetext); changetext.settextappearance(getapplicationcontext(), r.style.bluetext);
here style.xml
<!-- blue color --> <style name="bluetext"> <item name="android:textcolor">#4871a8</item> </style>
how can make sure textview bolded?
<!-- blue color --> <style name="bluetext"> <item name="android:textcolor">#4871a8</item> <item name="android:textstyle">bold</item> </style>
Comments
Post a Comment