Cant resolve constructor ArrayAdapter

后端 未结 2 488
再見小時候
再見小時候 2020-12-21 11:50

Can\'t use ArrayAdapter in a custom dialog.

This is the error I am getting

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 12:32

    Using this won't work since you are in the scope of the OnClickListener.

    You should try getContext() or getApplicationContext() instead of this.

提交回复
热议问题