Reputation: 181
How do I capture the click on the AutoCompleteTextView
arrow.
OnClick
works for the rest of the component, but it doesn't work when you specifically click the arrow.
Upvotes: 4
Views: 1280
Reputation: 181
It took a while, but I found the solution.
The event is in the parent of the AutoCompleteTextView.
XML:
Solution:
public com.google.android.material.textfield.TextInputLayout txtGleba;
...
txtGleba = findViewById(R.id.txtGleba);
txtGleba.setEndIconOnClickListener (new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
Upvotes: 14