Comments (2)
This function is temporarily not supported, but you can modify part of the code to achieve it
in ZFileListActivity,
you can do that ↓↓↓
private fun initListRecyclerView() {
fileListAdapter = ZFileListAdapter(this).run {
itemClickByAnim = { v, _, item ->
if (item.isFile) {
ZFileUtil.openFile(item.filePath, v)
} else {
// ZFileLog.i("进入 ${item.filePath}")
// backList.add(item.filePath)
// filePathAdapter.addItem(filePathAdapter.itemCount, item.toPathBean())
// zfile_list_pathRecyclerView.scrollToPosition(filePathAdapter.itemCount - 1)
// getData(item.filePath)
// nowPath = item.filePath
getData(item.filePath)
}
}
...
}
}
private fun getData(filePath: String?) {
...
ZFileUtil.getList(this) {
if (isNullOrEmpty()) {
fileListAdapter?.clear()
zfile_list_emptyLayout.visibility = View.VISIBLE
} else {
// fileListAdapter?.setDatas(this)
ZFileLog.i("rootPath:$rootPath")
ZFileLog.i("nowPath:$nowPath")
if (rootPath == SD_ROOT && nowPath.isNull()) {
fileListAdapter?.setDatas(this)
zfile_list_emptyLayout.visibility = View.GONE
} else {
setResult(ZFILE_RESULT_CODE, Intent().apply {
putParcelableArrayListExtra(
ZFILE_SELECT_DATA_KEY,
this@getList as java.util.ArrayList<out Parcelable>
)
})
finish()
}
}
zfile_list_refreshLayout.isRefreshing = false
}
}
from zfilemanager.
After this modification, there will be many problems, such as unable to enter the secondary directory. Better not to do this !!!
from zfilemanager.
Related Issues (18)
- 请问demo在哪? HOT 1
- 我只想选择文件 HOT 7
- 文件大小限制提示 HOT 3
- 相关zip代码上架谷歌商店爆警告 HOT 3
- 请教一个问题 HOT 4
- 大佬,可以复制文件到Android/data嘛? 在安卓11设备上 HOT 3
- ZFileStipulateAsync 在华为小米手机上筛选文件不返回数据 HOT 1
- 是否可以开放 文件夹 item点击事件 HOT 2
- android 10以上访问文件建议添加一个 storage access framework HOT 2
- 删除文件后,列表的缓存还在。怎么更新,或者怎么调用你的删除 HOT 3
- not support android 13 HOT 1
- 依赖包中缺少依赖导致不能正常使用
- 微信不能获取图片和视频等等 HOT 1
- 华为 安卓系统10看不到任何文件怎么办? HOT 2
- target设置成30的情况下文档识别不成功只能识别图片和视频 HOT 1
- 功能很多但是有些功能重点搞错地方,qq的界面样式很好但是没人会用来选择qq目录,只需要这个样式 HOT 13
- GIF 看大图时是静止的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zfilemanager.