• Post Reply Bookmark Topic Watch Topic
  • New Topic

Making text bold

 
Bilal A.Siddiqui
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

I am generating dynamic radiobutton. I want to make the text with radiobutton bold.

my code for generating for radiobutton looks like this


Bold i have defined in my strings.xml as



but the generated text with radio is not coming in bold

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cant you use Typeface.Bold with RadioButton?
 
Bilal A.Siddiqui
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi monu

i have done like this

rb1.setTypeface(null,Typeface.BOLD);

this is making it bold but the colour is not perfect balck, its kind of greyish.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!