Android:点击放大图像
我正在制作一个Android应用程序,其中需要,当用户单击图像时我希望它以全屏方式打开。我该如何实现这个目标? 有人能帮我解决这个问题吗? 谢谢
i am making an android app in which in need that , when the user clicks image I want it to open up in the full screen. How do I accomplish this?
Can anyone help me over this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
获取所选图像的图像 ID,然后使用 Intent 将该图像 ID 传递给 FullImage 活动。使用 ImageView 在该活动中显示图像。
按照这样的编码
Activity1 // 其中图像可用..
在 FullImage Activity.. 添加此编码。
Get image Id of selected image then pass that image id to FullImage activity using Intent. Display image in that activity using ImageView.
follow coding like this
Activity1 // where images are available..
in the FullImage Activity..add this coding.
你可以用一种简单的方式做到这一点。
如果您的活动有其他视图,只需将其可见性设置为消失,并使 imageview 填充 Click 事件的父级。
you can do it in an easy way.
If you have other views on your activity just set their Visibility to gone and make imageview fill parent on Click event.