简体   繁体   English

Android图像弹出消息

[英]Android image popup message

Please I'm actually coding an app for Android and I need some help to do something. 请实际上我正在为Android编写应用程序,我需要一些帮助来做一些事情。 I need to do a kind of popup image message exactly like that : http://postimg.org/image/ovaqw14n5/ I want that picture to be clicked and then it open the browser to open the link integrated with this image 我需要做一种完全像这样的弹出式图片消息: http : //postimg.org/image/ovaqw14n5/我希望单击该图片,然后打开浏览器以打开与该图片集成的链接

Thanks 谢谢

You should use a transparent, dialog themed activity . 您应该使用透明的对话框主题活动 It will use a layout with a FramLayout containing an ImageView and a themed button. 它将使用FramLayout包含ImageView和主题按钮的布局。

You could simply set it to a new intent which opens this popup screen followed by an intent shift back to the activity when the "x" is clicked on. 您可以简单地将其设置为新的意图,从而打开此弹出屏幕,然后在单击“ x”时将意图转移回活动。

Also, using a FrameLayout + imageView and a button (x) you can create this simply in the .xml. 另外,使用FrameLayout + imageView和按钮(x),您可以在.xml中简单地创建它。

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

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