Android getText from TokenAutoComplete library -
i'm using tokenautocomplete
, can not text library after fill edittext clicking on button. please help me info it
activity:
public class tokenactivity extends activity implements tokencompletetextview.tokenlistener { contactscompletionview completionview; person[] people; arrayadapter<person> adapter; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.token); people = new person[]{ new person("amanda johnson", "amanda illustration com"), new person("terry anderson", "terry illustration com") }; adapter = new arrayadapter<person>(this, android.r.layout.simple_list_item_1, people); completionview = (contactscompletionview)findviewbyid(r.id.searchview); completionview.setadapter(adapter); } @override public void ontokenadded(object token) { log.e ( "------->", string.valueof ( token ) ); } @override public void ontokenremoved(object token) { log.e ( "------->>>", string.valueof ( token ) ); } }
the objects in completionview should available getobjects. trying raw text out of it?
android
No comments:
Post a Comment