I have an AutoCompleteTextView in my app. The app makes use of the Facebook SDK. I followed the code from this question on SO: https://stackoverflow.com/a/12363961/450534 to
https://github.com/dhaval001/linkable_text_view.git
Simple way to create link text, such as @username or #hashtag, in Android TextView and EditText with multiautocomplete textview. link facebook and instagram
Features
Match single strings or regex pattern to set links Change the color of the linked text Set the style of the linked text: BOLD, ITALIC, or BOLD_ITALIC Set the underlined of the linked text Specify click actions of a specific word OnTextChangedListener listener for LinkableEditText