[英]How to open a alertDialog on click of the button in the row of a recyclerView in android?
我有一个recylerView,其中每行都有一个按钮,我想在单击相应按钮时打开自定义警报视图
When initializing your button give him a tag. 初始化按钮时给他一个标签。 Create an onClickListener where you can switch by tag.
创建一个onClickListener,您可以在其中按标记进行切换。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.