问题描述
目前我正在Google驱动器选择器中使用 google.picker.ViewId.FOLDERS
视图.但是,这显示了驱动器中的所有文件夹(包括深层文件夹).
Currently I am using google.picker.ViewId.FOLDERS
view in Google drive picker. This however, shows all the folders(including deep level folders) in my drive.
如何实现只首先显示顶级文件夹的视图?这将类似于Dropbox选择器的文件视图.
How to achieve a view in which only the top level folders are displayed at first? This would be similar to Dropbox chooser's file view.
推荐答案
要在根目录下查看文件夹和文件,可以使用以下视图: addView(new google.picker.DocsView().setIncludeFolders(true).setOwnedByMe(true))
In order to see the folders and files at root level, you can use the view: addView(new google.picker.DocsView().setIncludeFolders(true).setOwnedByMe(true))
您将能够搜索更深层次的项目.
You will be able to search for items in deeper levels.
这篇关于Google云端硬盘选择器:仅显示顶级文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!