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

How to check DropDown status (shown or hidden) in autoCompleteTextView on Android?

+4
source share
3 answers

You can use the method . isPopupShowing()

Indicates whether a pop-up menu is displayed. Returns true if a popup menu is displayed, false otherwise

Finally

if(YourAutoCompleteTextViewObject.isPopupShowing()){
// Your code
}else{
// Your code
}
+5
source

Try using isPopupShowingfor this. Here you can find many other interesting things: http://developer.android.com/reference/android/widget/AutoCompleteTextView.html

+1
source
if(autoCompleteTextView.isPopupShowing()){
......
}else{

...}
+1

Source: https://habr.com/ru/post/1568808/


All Articles