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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -