|
24 | 24 |
|
25 | 25 | ### 用法
|
26 | 26 |
|
| 27 | + |
| 28 | +``` |
| 29 | +implementation 'cn.imlibo:FilePicker:v0.0.1_alpha' |
| 30 | +``` |
| 31 | + |
| 32 | +> 如果报找不到依赖库的错,在项目的build.gradle添加如下代码: |
| 33 | +
|
| 34 | + |
| 35 | +``` |
| 36 | +allprojects { |
| 37 | + repositories { |
| 38 | + google() |
| 39 | + jcenter() |
| 40 | + maven { url "https://jitpack.io" } |
| 41 | + maven { url "https://dl.bintray.com/libo/maven" } |
| 42 | + } |
| 43 | +} |
| 44 | +``` |
| 45 | + |
| 46 | + |
| 47 | + |
27 | 48 | ##### 一、 在文件浏览器中选择指定文件
|
28 | 49 | ```
|
29 | 50 | FilePicker.from(this)
|
@@ -154,3 +175,26 @@ themeId | 主题ID | R.Style.FilePicker_Elec
|
154 | 175 |
|
155 | 176 | [AndroidPicker](https://github.com/gzu-liyujiang/AndroidPicker)
|
156 | 177 |
|
| 178 | +## LICENSE |
| 179 | + |
| 180 | +MIT License |
| 181 | + |
| 182 | +Copyright (c) 2018 |
| 183 | + |
| 184 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 185 | +of this software and associated documentation files (the "Software"), to deal |
| 186 | +in the Software without restriction, including without limitation the rights |
| 187 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 188 | +copies of the Software, and to permit persons to whom the Software is |
| 189 | +furnished to do so, subject to the following conditions: |
| 190 | + |
| 191 | +The above copyright notice and this permission notice shall be included in all |
| 192 | +copies or substantial portions of the Software. |
| 193 | + |
| 194 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 195 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 196 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 197 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 198 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 199 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 200 | +SOFTWARE. |
0 commit comments