I am using AutoCompleteTextView (ref : AutoCompleteTextView )
I am able to get list of auto suggestion provided by this view.
Now I want to disable the second suggestion from this view.
Can you please tell me how to achieve it ? Thanks
Create a custom data adapter for your AutoCompleteTextView
by extending ArrayAdapter
and then override isEnabled
method from that custom adapter to define which items are click-able or not.
@Override
public boolean isEnabled(int position) {
// TODO Auto-generated method stub
return super.isEnabled(position);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With