Android

Show Spinner dropdown items when click on a button

Show Spinner Dropdown items

To show Spinner dropdown items, when click on a button, as shown in image below

Spinner Dropdown

spinnerView.performClick();

ex:

btnView.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
        spinnerView.performClick();
    }
});

Hope it helps somebody

Cheers …

Leave a Reply

Your email address will not be published. Required fields are marked *