Skip to content

Commit f8fd96f

Browse files
authored
Merge pull request #58 from rosuH/dev
Docs
2 parents 76bb94b + 2c12405 commit f8fd96f

File tree

4 files changed

+35
-43
lines changed

4 files changed

+35
-43
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Well, it doesn't have a name like Rocky, Cosmos or Fish. Android File Picker, li
1414
- Custom Root path to start
1515
- Built-in default file type and file discriminator
1616
- Or you can implement the file type yourself
17+
- Built in Single Choice mode and Multiple Choice mode.
1718
- Custom list filter
1819
- Just want to show pictures(Or videos, audio...)? No problem!
1920
- Of course, you can just display the folder
@@ -25,7 +26,7 @@ Well, it doesn't have a name like Rocky, Cosmos or Fish. Android File Picker, li
2526
| :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: |
2627
| ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/default_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/reply_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/crane_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/shrine_theme.png) |
2728

28-
# Download
29+
## Download
2930

3031
Gradle:
3132

@@ -50,9 +51,9 @@ dependencies {
5051

5152
Check out [releases page](https://github.com/rosuH/AndroidFilePicker/releases) to see more versions.
5253

53-
# Usage 📑
54+
## Usage 📑
5455

55-
## Permission
56+
### Permission
5657

5758
The library requires two permissions:
5859

@@ -61,7 +62,7 @@ The library requires two permissions:
6162

6263
If you do not have permission to apply, this framework will check and apply at startup.
6364

64-
## Launch 🚀 (Kotlin)
65+
### Launch 🚀 (Kotlin)
6566

6667
```java
6768
FilePickerManager
@@ -81,7 +82,7 @@ FilePickerManager.INSTANCE
8182

8283

8384

84-
## Receive Result
85+
### Receive Result
8586

8687
In `onActivityResult()` callback of the starting `Activity` or `Fragment`:
8788

@@ -118,26 +119,21 @@ The result is a path list of the selected file (`ArrayList<String>()`).
118119

119120
Starting with 0.5.2, we removed the coroutine library and implemented it using native threads, so there is no need to add proguard-rules.
120121

121-
## More examples
122+
## More and more
122123

123-
[Look here](https://github.com/rosuH/AndroidFilePicker/wiki/4.-%E7%A4%BA%E4%BE%8B%E5%8F%8A%E8%A7%A3%E9%87%8A).
124+
- [Source Code Explanation](https://github.com/rosuH/AndroidFilePicker/wiki/4.-%E7%A4%BA%E4%BE%8B%E5%8F%8A%E8%A7%A3%E9%87%8A).
124125

125-
# Log
126+
- [Change Log](https://github.com/rosuH/AndroidFilePicker/wiki/Change-Log)
126127

127-
[Update Log](https://github.com/rosuH/AndroidFilePicker/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97)
128-
129-
# TODO
130-
131-
[TODO](https://github.com/rosuH/AndroidFilePicker/wiki/TODO)
128+
- [TODO](https://github.com/rosuH/AndroidFilePicker/wiki/TODO)
132129

133130

134131

135132
---
136133

137-
# Special Thanks To:
134+
## Special Thanks To:
138135

139-
- [*1 @whichName](https://github.com/whichname)
140-
- [BRVAH](https://github.com/CymChad/BaseRecyclerViewAdapterHelper)
136+
- [whichName](https://github.com/whichname)
141137
- [Matisse](https://github.com/zhihu/Matisse)
142138
- [Default Icon Author Shulk](http://iconfont.cn/collections/detail?spm=a313x.7781069.1998910419.d9df05512&cid=11271)
143139
- [Theme Color](https://material.io/design/material-studies/about-our-material-studies.html)

README_CN.md

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88

99
它没有像 Rocky,Cosmos 或是 Peppa 这样的名字。 Android File Picker 正如其名,是一个本地文件选择器框架。 他的一些特征如下所述:
1010

11-
-`Activity``Fragment` 中启动
11+
-`Activity``Fragment` 中启动
1212
- 从一行代码开始
13-
- 浏览本地存储中的所有文件
14-
- 自定义根目录
15-
- 内置默认文件类型和文件鉴别器
16-
- 或者您可以自己实现文件类型
17-
- 自定义列表过滤器
18-
- 只想显示图片(或视频,音频......)? 没问题!
19-
- 当然,您也可只显示文件夹
20-
- 自定义`item`点击事件:只需要实现监听器
21-
- 四个内置主题和自定义主题
22-
- 还有更多待您自己探索的特性(?)
13+
- 浏览本地存储中的所有文件
14+
- 内置默认文件类型和文件鉴别器
15+
- 或者您可以自己实现文件类型
16+
- 内置了单选模式和多选模式
17+
- 自定义列表过滤器
18+
- 只想显示图片(或视频,音频......)? 没问题!
19+
- 当然,您也可只显示文件夹
20+
- 自定义`item`点击事件:只需要实现监听器
21+
- 四个内置主题和自定义主题
22+
- 还有更多待您自己探索的特性(?)
2323

2424

2525

@@ -29,7 +29,7 @@
2929

3030

3131

32-
# 下载使用
32+
## 下载使用
3333

3434
1. 在你的项目中添加依赖
3535

@@ -56,9 +56,9 @@ dependencies {
5656

5757

5858

59-
# 使用
59+
## 使用
6060

61-
## 权限
61+
### 权限
6262

6363
此库需要两个权限:
6464

@@ -67,7 +67,7 @@ dependencies {
6767

6868
如果您没有提前授予,这个库会自动申请该权限的。
6969

70-
## 开始使用(`Kotlin`)
70+
### 开始使用(`Kotlin`)
7171

7272
简单的链式调用示意:
7373

@@ -89,7 +89,7 @@ FilePickerManager.INSTANCE
8989

9090

9191

92-
## 获取结果
92+
### 获取结果
9393

9494
*获取结果*`onActivityResult`接受消息,然后调用`FilePickerManager.obtainData()`获取保存的数据,**结果是所选取文件的路径列表(`ArrayList<String>()`)**
9595

@@ -149,23 +149,19 @@ override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
149149
3. 可配置导航栏的文本,默认显示、多选文本、取消选择文本以及根目录默认名称
150150
7. 公开条目(`item`)选择监听器,可自定义条目被点击的实现
151151

152-
### 部分源码说明
152+
## 其他
153153

154-
[看这里](https://github.com/rosuH/AndroidFilePicker/wiki/%E9%83%A8%E5%88%86%E6%BA%90%E7%A0%81%E8%AF%B4%E6%98%8E)
154+
- [部分源码说明](https://github.com/rosuH/AndroidFilePicker/wiki/%E9%83%A8%E5%88%86%E6%BA%90%E7%A0%81%E8%AF%B4%E6%98%8E)
155155

156-
# Log
156+
- [更新日志](https://github.com/rosuH/AndroidFilePicker/wiki/Change-Log)
157157

158-
[Update Log](https://github.com/rosuH/AndroidFilePicker/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97)
159-
160-
# TODO
161-
162-
[TODO](https://github.com/rosuH/AndroidFilePicker/wiki/TODO)
158+
- [TODO](https://github.com/rosuH/AndroidFilePicker/wiki/TODO)
163159

164160

165161

166162
---
167163

168-
# Special Thanks To:
164+
## Special Thanks To:
169165

170166
- [*1 @whichName](https://github.com/whichname)
171167
- [BRVAH](https://github.com/CymChad/BaseRecyclerViewAdapterHelper)

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ android {
2929
dependencies {
3030
implementation fileTree(include: ['*.jar'], dir: 'libs')
3131
debugImplementation project(':filepicker')
32-
releaseImplementation 'me.rosuh:AndroidFilePicker:0.5.3'
32+
releaseImplementation 'me.rosuh:AndroidFilePicker:0.6.0'
3333
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
3434
implementation 'com.android.support:appcompat-v7:28.0.0'
3535
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

sample/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<resources>
22
<string name="app_name">AndroidFilePicker</string>
33
<string name="default_btn">default</string>
4-
<string name="single_choise">single select</string>
4+
<string name="single_choice">single select</string>
55
<string name="only_show_folder">only show folders</string>
66
<string name="only_show_imgs">only show images</string>
77
<string name="custom_root_path">custom root path</string>

0 commit comments

Comments
 (0)