Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check dropDown status (shown or hidden) in autoCompleteTextView?

How to check dropdown status (shown or hidden) in AutoCompleteTextView in Android?

like image 736
user1528799 Avatar asked Dec 23 '14 19:12

user1528799


1 Answers

You can use isPopupShowing() method.

Indicates whether the popup menu is showing. Returns true if the popup menu is showing, false otherwise

Finally

if(YourAutoCompleteTextViewObject.isPopupShowing()){
// Your code
}else{
// Your code
}
like image 102
IntelliJ Amiya Avatar answered Nov 07 '22 09:11

IntelliJ Amiya