简体   繁体   English

单击“ RecyclerView购物车”图标显示“自定义对话框”

[英]Show Custom Dialog on clicking RecyclerView cart icon

I have created a RecyclerView showing list of songs coming from server. 我创建了一个RecyclerView来显示来自服务器的歌曲列表。 Now I want to show a dialog to the user whenever user clicks on the cart icon. 现在,我想在用户单击购物车图标时向用户显示一个对话框。 For reference I have uploaded and image. 作为参考,我上传了图片。 Thanks in Advance. 提前致谢。

在此处输入图片说明

you can use PopupMenu. 您可以使用PopupMenu。 see this example enter link description here 看到这个例子在这里输入链接描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM