can any one tell how to add text styles to text view at runtime..
How to add text styles to text view at runtime in android
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Selva GanapathyRank #560 · 4.3K reputationPosted Mar 11, 2014, 8:31 PM EDT
You can change the text style using the following code snippet.
setTextAppearance(getApplicationContext(), R.style.boldText);
Regards,
Selva Ganapathy K
Ramya P52 reputationPosted Mar 11, 2014, 9:34 PM EDT
but i need to change multiple styles i want to select arial,verdana,Timesnewroman etc.,
when i select that option that font also change to that style like ms word,
is it possible in android..
Selva GanapathyRank #560 · 4.3K reputationPosted Mar 12, 2014, 3:33 AM EDT
Can you share me the Application (if possible) so that I can solve your problem?
Regards,
Selva Ganapathy K