Find and Colorize Specific Words (Hashtags) in a String (TextView)

A user on Stack Overflow came up with an interesting problem to find and colorize specific words that are hashtags in a given string extracted from a TextView. The solution is quite simple to achieve unless you’re new to Android development or Java programming. The problem was that the user wanted to identify or match hashtags from a given text (in a TextView) and colorize every hashtag in it. Well, this has a very simple approach and can be achieved easily with a just a few lines of code.