I had a scenario where I am using spinner in my app. A made spinner drop down list to open up directly using "performclick()" method . The drop down list is opened. Is there a way in which I can close it automatically or click an item from drop down list automatically so that the drop down list is dismissed.
Borg8's answer is the only solution that works! Here is my version to add the spinner back.
if (spinner.getParent() == null){
parent.addView(spinner);
spinner.setLayoutParams(params);
spinner.forceLayout();
}
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