Answer the question
In order to leave comments, you need to log in
How to make text in TextView different thickness and color?
I'm making an app similar to Instagram. It is necessary to make the text in the description of the post and in the comments non-uniform, that is, for example, the author's name is highlighted in bold (or in a different font), hashtags and user nicknames differ in color, like this
How to do it within one TextView and is it done like this at all way? How to recognize hashtags and nicknames of users in order to change their color later? How to make hashtags and nicknames of users clickable in order to go to the hashtag search or to the user profile?
Answer the question
In order to leave comments, you need to log in
If you are interested in a tutorial on how to do all this, then here is one of them. As for the clickability of the text, Google gives a lot of links to the query "link in textview", for example here .
For hashtags, you can also use a ready-made library, for example this one . See this for formatting text .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question