Android: AutoCompleteTextView with default suggestions -



Android: AutoCompleteTextView with default suggestions -

how show default suggestions autocompletetextview before user type anything? cannot find way creating custom class extends autocompletetextview.

i want show suggestions mutual input values save user typing.

any suggestions?

you should subclass autocompletetextview , override enoughtofilter() homecoming true time. after can phone call performfiltering("",0) (it's protected function, can export phone call via public function in class).

something that:

public class contactsautocompletetextview extends autocompletetextview { public contactsautocompletetextview(context context) { super(context); } public contactsautocompletetextview(context context, attributeset attrs) { super(context, attrs); } public contactsautocompletetextview(context context, attributeset attrs, int defstyle) { super(context, attrs, defstyle); } @override public boolean enoughtofilter() { homecoming true; } public void temp() { performfiltering("",0); } }

android autocompletetextview

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -