問題描述
我一直在四處尋找,但找不到任何答案.我要實(shí)現(xiàn)的是一個(gè)類似于 ICS gmail 應(yīng)用程序的撰寫屏幕中的收件人"字段的 EditText.
I've been searching around but could not find any answers to this. What I'm trying to implement is an EditText similar to the 'To' field found in the composing screen of the ICS gmail app.
這是一張描述我想要的圖片:
Here's an image describing what I want:
我正在考慮擴(kuò)展 EditText
并實(shí)現(xiàn)我自己的自定義 EditText
類,但我不確定如何做到這一點(diǎn),或者即使這是最好的解決方案.有什么想法嗎?
I'm thinking of extending EditText
and implementing my own custom EditText
class but I'm not really sure how to do that or even if that's the best solution. Any thoughts?
推薦答案
嗯,花了一段時(shí)間才找到一個(gè)類似的問題,但這里是 我找到的最接近的答案.我以前就知道其他人有這種問題!感謝 CommonsWare 為我指明了正確的方向.
Hm, took a while to find a similar question but nonetheless, here's the closest answer I found. I knew other people had this kind of problem before! Thanks to CommonsWare for pointing me in the right direction.
這篇關(guān)于創(chuàng)建具有類似標(biāo)簽功能的自定義 editText的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!