Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Jeanne Boyarsky
Bear Bibeault
Sheriffs:
Rob Spoor
Henry Wong
Liutauras Vilda
Saloon Keepers:
Tim Moores
Carey Brown
Stephan van Hulst
Tim Holloway
Piet Souris
Bartenders:
Frits Walraven
Himai Minh
Jj Roberts
Forum:
Android
Making text bold
Bilal A.Siddiqui
Ranch Hand
Posts: 31
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
RadioButton rb1 = new RadioButton(this); rb1.setId(1); rb1.setText("Vishal Kumar Arya"); rb1.setTextColor(R.color.Black); rb1.setTextAppearance(this, R.style.Bold); PremiumCollectionHomeRadioGroup.addView(rb1);
Bold i have defined in my strings.xml as
<style name="Bold">bold</style>
but the generated text with radio is not coming in bold
Regards
Bilal
Monu Tripathi
Rancher
Posts: 1369
1
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Cant you use
Typeface.Bold
with RadioButton?
[
List of FAQs
] | [
Android FAQ
] | [
Samuh Varta
]
Bilal A.Siddiqui
Ranch Hand
Posts: 31
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Regards
Bilal
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Select some text from textarea
Validation error: Failed to convert property value of type [java.lang.String] to required type [int]
Nested datatables and inputText with duplicates id
Jboss 5.1.0 jsp:root not working
Displaying alert message after submit in textbox
More...