Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi people. im new in Java. so thats why im here. 
im in my first Java App with Android Studio, But i wondering if there exists something to put a string in BOLD im mean, i was trying this:



Quote:
txtSaludo = (TextView)findViewById(R.id.txtNombre);
txtSaludo.setTypeface(null, Typeface.BOLD);



And Works fine..
The result is : hi World

but if i wanna only the "hi" i mean: hi World
whats should i do?

What I have tried:

so far, only that i was trying, was put typeface, but it is for all the container (textview or EditText)
Posted
Updated 20-Jul-16 3:46am
Comments
Peter_in_2780 19-Jul-16 0:48am    
Googling "android format text" produces over 26 million hits. On the first page, http://android4beginners.com/2013/06/lesson-1-how-to-display-and-format-a-text-in-android-apps/ shows how to play around with colours. Exactly the same techniques work for font weight and so on.
Rene Bustos 20-Jul-16 15:45pm    
Thanks for your Help. Best Regards.

1 solution

Hope you will find answer to your question here:
android - how to make a specific text on TextView BOLD - Stack Overflow[^]
 
Share this answer
 
Comments
Rene Bustos 20-Jul-16 15:52pm    
Thank you very much Jignesh. that information helps me to find another way to do that!
Best regards.
Jignesh Khatri 20-Jul-16 21:38pm    
Glad it helped you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900