Android版本的iOS Quick Look Framework [英] Android version of iOS Quick Look Framework
问题描述
Is there something similar to the iOS Quick Look Framework for Android? I'm trying to display/preview PDF and Microsoft Office files inside my Activity. I know that I can use Intents to open the files using the associated viewer but I would like to know if it's possible to not leave my application.
推荐答案
仅当您编写自己的查看器时才有可能. iOS应用正在调用一个外部类,该类恰好在您自己的视图内进行渲染.与Android并没有太大区别,只是您使用意图而不是调用特定的应用程序或框架,因为用户可以选择打开文件的方式,该应用程序或框架更加灵活.
It's only possible if you write your own viewers. The iOS app is calling out to an external class which just happens to render inside your own view. Not much different to Android except, you use an intent rather than call a specific app or framework which is more flexible since the user chooses how the file is opened.
这篇关于Android版本的iOS Quick Look Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!