Android version of iOS Quick Look Framework

自闭症网瘾萝莉.ら 提交于 2019-12-22 05:26:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/13615116/android-version-of-ios-quick-look-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!