Android图片意图:共享/编辑选项 [英] Android image intent : sharing/editing options

查看:135
本文介绍了Android图片意图:共享/编辑选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启动从存储中查看图像的意图,但是一旦图库查看器打开,它就会显示分享编辑选项。

是否有任何额外或标志来告诉意图禁用这些属性。

我想要的只是普通图像查看器(例如视频播放器默认不显示共享选项)
谢谢!

I'm trying to launch an intent for viewing an image from storage, but once the gallery viewer opened, it appears with sharing and editing options.
Is there any extra or flag to tell the intent to disable those properties.
All i want is the plain image viewer (the video player for example doesn't show sharing options by default) Thanks!

推荐答案

没有这样的意图,也没有标志。如果你只想普通观众使用 ImageView

No there's no such intent, nor flag. If you want just plain viewer use ImageView:

  ImageView iv = (ImageView)findViewById(R.id.iv);
  File f = getFileStreamPath(fileName);
  iv.setImageDrawable(Drawable.createFromPath(f.toString()));

这篇关于Android图片意图:共享/编辑选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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