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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -