How to check DropDown status (shown or hidden) in autoCompleteTextView on Android?
You can use the method . isPopupShowing()
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 }
Try using isPopupShowingfor this. Here you can find many other interesting things: http://developer.android.com/reference/android/widget/AutoCompleteTextView.html
isPopupShowing
if(autoCompleteTextView.isPopupShowing()){ ...... }else{ ...}
Source: https://habr.com/ru/post/1568808/More articles:UnsupportedOperationException on Android 3.2 when selecting text (AppCompat 21.0.3) - android"calling SetCurrentCellAddressCore" in event handlers - only where the row and column indices of the cell are equal - c #Read the file line by line and replace the regex - c #Extremely large single line file. - stringJava Swing: consumption of key events - javaprohibition of actions - androidRun the bash script from another script and exit the script first, and in the second - linuxКак структурировать ответ с массивом, который имеет href для себя в YAML/swagger.io? - rest"No. - rSOAP KeyInfo Values - javaAll Articles