how to add text styles to text view at runtime in androidRamya P12yAsked Mar 10, 2014, 7:29 AM1.7kAndroidcan any one tell how to add text styles to text view at runtime..
Selva Ganapathy12y agoPosted Mar 12, 2014, 7:33 AMHi Ramya,Can you share me the Application (if possible) so that I can solve your problem?Regards,Selva Ganapathy K
Ramya P12y agoPosted Mar 12, 2014, 1:34 AMthank you for replying,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 Ganapathy12y agoPosted Mar 12, 2014, 12:31 AMHi Ramya,You can change the text style using the following code snippet.setTextAppearance(getApplicationContext(), R.style.boldText);Regards,Selva Ganapathy K
Selva GanapathyPosted Mar 12, 2014, 7:33 AM
Can you share me the Application (if possible) so that I can solve your problem?
Regards,
Selva Ganapathy K
Ramya PPosted Mar 12, 2014, 1:34 AM
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 GanapathyPosted Mar 12, 2014, 12:31 AM
You can change the text style using the following code snippet.
setTextAppearance(getApplicationContext(), R.style.boldText);
Regards,
Selva Ganapathy K