Android OPEN spinner with single button click

前端 未结 2 1448
温柔的废话
温柔的废话 2021-02-12 20:08

I have implemented button which clicks and opens dialog with spinner inside as described here

However this is two clicks. One to open dialog and one to open spinner. I

2条回答
  •  难免孤独
    2021-02-12 21:02

    Define a spinner in your activity with 0 height and 0 width in your xml, then the onItemSelected will work

提交回复
热议问题