简体   繁体   English

单击imageview时显示android弹出窗口,并将其放置在imageview附近

[英]Show android pop up window on click of imageview and place it near to imageview

I want popup window like this to be shown next to image view supporting every device and tablet. 我希望这样的弹出窗口显示在支持所有设备和平板电脑的图像视图旁边。 I have tried using showAtLocation() but still not satisfied with popup location. 我尝试使用showAtLocation(),但对弹出位置仍然不满意。

这样显示弹出窗口。

You need to put a RelativeLayout on top of your existing layout and position the popup within it. 您需要在现有布局的顶部放置一个RelativeLayout,然后在其中放置弹出窗口。

Have a look at how android-tooltips or supertooltips do it. 看看android-tooltipssupertooltips是如何做到的。

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

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