使用一些正则表达式在MultiAutoCompleteTextView上自定义跨度

时间:2014-11-24 22:17:40

标签: android regex linkify spannablestring multiautocompletetextview

我想在我的应用中做@ mentions。 当我开始输入并注意'@'时,我会从多视图中显示建议,我选择了我想要的建议,最后我得到了这个字符串。

Hi @[John Snow](john-snow-id), I'm mention you in this edittext and then ill post you to the server.

现在,我想在多视图中显示的内容是。

Hi @John Snow I'm mention you in this edittext and then ill post you to the se

我要发送到服务器的是

Hi @[John Snow](john-snow-id), I'm mention you in this edittext and then ill post you to the server.

可以有多个提及。有什么建议吗?

0 个答案:

没有答案