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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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