GithubHelp home page GithubHelp logo

Comments (10)

rosuH avatar rosuH commented on July 26, 2024

不是的。子目录肯定也是支持的。
建议提供一下调用方式和文件列表,比较容易排查问题~

from androidfilepicker.

NiuXiaoGuang avatar NiuXiaoGuang commented on July 26, 2024

不是的。子目录肯定也是支持的。
建议提供一下调用方式和文件列表,比较容易排查问题〜

image
image

U34}0EZ@@3J3`XYT4U}DV8O

$4 4B%4B$BL%VLVFS07R%6C

最后张图的音乐在子目录中,却扫描不到

from androidfilepicker.

rosuH avatar rosuH commented on July 26, 2024

@NiuXiaoGuang 调用方式有问题...你把文件夹过滤了呀...

正确的应该还要加上isDir判断。然后也不需要加上isChecked(),因为这个列表是最终的显示列表,还没有被选中的。

...
if (fileItemBean.isDir || fileItemBean.getFileType() instanceof AudioFileType){
    fileItemBeans.add(fileItemBean)
}

from androidfilepicker.

NiuXiaoGuang avatar NiuXiaoGuang commented on July 26, 2024

@NiuXiaoGuang调用方式有问题......你把文件夹过滤了呀......

的正确应该还要加上isDir判断。然后也不需要加上isChecked(),因为这个列表是最终的显示列表,还没有被选中的。

...... 
如果(fileItemBeanISDIR || fileItemBeangetFileType()的instanceof  AudioFileType){
    fileItemBeans 。添加(fileItemBean)
}

我按照你说的方式调用,但是结果还是不太理想,还是需要打开子文件夹才能找到,手机的文件夹太多了。能不能改进下,调用之后直接显示想要的指定文件类型而不包括文件夹,这样字比较直观一点

from androidfilepicker.

rosuH avatar rosuH commented on July 26, 2024

你想要的效果应该是直接扫描出所有指定类型的文件。这个功能现在还没有,后面会考虑加上~

from androidfilepicker.

NiuXiaoGuang avatar NiuXiaoGuang commented on July 26, 2024

你想要的效果应该是直接扫描出所有指定类型的文件。这个功能现在还没有,后面会考虑加上〜

拭目以待

from androidfilepicker.

rosuH avatar rosuH commented on July 26, 2024

@NiuXiaoGuang 您好,如果想直接选中特定类型的文件。
推荐可以使用系统的 SAF 进行访问。体验会更好。

from androidfilepicker.

wayuhan avatar wayuhan commented on July 26, 2024

0.6.0版本支持这个功能了吗

from androidfilepicker.

rosuH avatar rosuH commented on July 26, 2024

@wayuhan 还没有支持。可以看上一条评论。
因为如果这个库要做这件事情的话,会有点麻烦。所以我的推荐是建议使用系统的 SAF 进行访问。

from androidfilepicker.

wayuhan avatar wayuhan commented on July 26, 2024

from androidfilepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.