小黃你回來啦!
今天吃拉雅 taken with instagram at 新竹高鐵站hsinchu thsr
今天吃拉雅 (Taken with Instagram at 新竹高鐵站hsinchu Thsr)
生氣鳥戰記 -- 小黃上哪兒去了?
[Android][Tip] How Twitter for Android implements auto completion in post screen?
Twitter for Android popup a user list when you enter “@” in post screen. Like this:
How it implement such feature? The solution can’t be simpler - You could use MultiAutoCompeleteTextView to do this.
Here is the sample codes:
And the result:
To use this widget, you need to implement a Tokenizer to tell it where the sub text is. In this case, just find the string between ’@’ and space.