Android的多文件选择器/选择器对话框 [英] Android Multiple File Selector/Chooser Dialog

查看:584
本文介绍了Android的多文件选择器/选择器对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经冲刷互联网的简单易于实现Android的文件选择对话框,还具有选择多个文件,并返回一个 URI 或字符串数​​组与所有选定的文件。

目前我使用 aFileChooser github上,它是根据我比的 Android的文件对话框。但无论是地址传递多个文件的问题。

我只是一个中间Android开发者,但我认为这将是东西不是很难受亲来实现。

我已经看过 aFileChooser 的code,我想加入的复选框该文件的项目将是一段路要走,但只要code而言我是无能和开发商似乎他不就行了,在可预见的未来真的会工作

因此​​,在短期IM请求帮忙或者通过GitHub上添加选择多个文件选项, aFileChooser 或点击这里,或者建议我一个更好的对话框,我想要做什么。

解决方案

感谢的答案上面,我做了,解决的关心一个简单的库。它不仅传递文件路径的数组,但你也可以用它来选择一个文件夹。 - 它具有缩略图图像文件 - 自动滚动到最后的滚动位置 - 将会很快有几个语言环境的语言支持

https://github.com/tapaulo/Android-Multiple-file-选择-对话

I have been scouring the internet for a simple easy to implement Android file chooser dialog that also has the option of selecting multiple files and returning a uri or string array with all the files selected.

Currently I use aFileChooser on github and it is according to me better than android-file-dialog. But neither address the issue of passing multiple files.

I am only an intermediate android developer but I think this would be something not so hard to implement by a pro.

I have looked at the code of aFileChooser and I think adding a check box to the file item would be the way to go but as far as code is concerned i am clueless and the developer seems he's not really gonna work on it in the foreseeable future

So in short im requesting for help to either add the select multiple files option to aFileChooser via the github or here, or maybe suggest to me a better dialog that does what i want.

解决方案

Thank's to the answer above, I've made a simple library that addresses the concern. It not only passes an array of file paths but you can also use to select a folder. -It has thumbnails for image files -auto scrolls to last scroll position -will soon have language support for several locales

Here it is.

https://github.com/tapaulo/Android-Multiple-file-Selector-Dialog

这篇关于Android的多文件选择器/选择器对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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