在全屏android中打开图像 [英] Open Image in full screen android

查看:68
本文介绍了在全屏android中打开图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个缩略图图像,当您单击图库中的任何图像并以全屏显示时,我想以全屏显示的图像显示它.

I have an image in thumbnail in my application and I want to display full screen image like it shows, when you click on any image in gallery and it displays in full screen.

我该如何实现?

推荐答案

您可以启动图库应用程序本身,以使用以下代码片段查看图像 您可以尝试一下.

You could launch the gallery app itself to view the image using below code snippet You could give this a try.

意图intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(file.getAbsolutePath()),"image/*");

Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(file.getAbsolutePath()),"image/*");

startActivity(intent);

startActivity(intent);

这篇关于在全屏android中打开图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆