简体   繁体   English

要在Gridview中单击时显示图像的完整大小?

[英]To show the Full size of image when it was clicked in Gridview?

Im new to Android and doing some research, I found this Example on the internet and it's good. 我是Android的新手,正在做一些研究,所以我在互联网上找到了这个Example ,很好。

Now, what to I want to do is when an image was clicked, I want to show the full size of the image. 现在,我要做的是单击图像时,我要显示图像的完整大小。

How can I achieve that? 我该如何实现?

You can do this in two ways. 您可以通过两种方式执行此操作。

Either you can get the selected image and launch your activity or dialog to show the image in large size. 您可以获取所选图像并启动活动或对话框以大尺寸显示图像。 Or you can launch other applications to show the selected image like below : 或者,您可以启动其他应用程序以显示选定的图像,如下所示:

    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("IMAGE_URI")));

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

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