{"id":17688200,"url":"https://github.com/ccapton/filechooser","last_synced_at":"2025-05-13T00:48:41.397Z","repository":{"id":176302397,"uuid":"116492161","full_name":"Ccapton/FileChooser","owner":"Ccapton","description":"An android file(path) chooser ,it's super easy to use. Android文件(路径)选择器，超简单配置","archived":false,"fork":false,"pushed_at":"2018-08-12T19:15:36.000Z","size":575,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T00:48:35.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ccapton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-06T15:07:13.000Z","updated_at":"2021-10-29T03:02:37.000Z","dependencies_parsed_at":"2023-07-09T02:30:44.913Z","dependency_job_id":null,"html_url":"https://github.com/Ccapton/FileChooser","commit_stats":null,"previous_names":["ccapton/filechooser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FFileChooser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FFileChooser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FFileChooser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FFileChooser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ccapton","download_url":"https://codeload.github.com/Ccapton/FileChooser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850882,"owners_count":21973672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T11:43:44.566Z","updated_at":"2025-05-13T00:48:41.377Z","avatar_url":"https://github.com/Ccapton.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileChooser\nAndroid文件(路径)选择器，超简单配置 :fire:\n## 效果\n![](https://raw.githubusercontent.com/Ccapton/FileChooser/master/filechooser2.png)\n![](https://raw.githubusercontent.com/Ccapton/FileChooser/master/filechooser.gif) \n\n## gradle引入\nbuild.gradle(Project)\n```\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nbuild.gradle(Module:app)\n```\ndependencies {\n\t        compile 'com.github.Ccapton:FileChooser:1.0.1'\n   }\n```\n#### 重要配置\n如果你的项目没有配置databinding和vectorDrawables\n请在下图的位置分别加上这两句代码\n```\nvectorDrawables.useSupportLibrary = true\n```\n```\ndataBinding {\n    enabled true\n}\n```\n![](https://raw.githubusercontent.com/Ccapton/FileChooser/master/gradle_setting.jpg)\n\n## 使用方法\n示例代码:\n```\nFileChooser fileChooser = new FileChooser(MainActivity.this, new FileChooser.FileChoosenListener() {\n                    @Override\n                    public void onFileChoosen(String filePath) {\n                        ((TextView)findViewById(R.id.hello)).setText(filePath);\n                    }\n                });\n\t\t/*\n\t\t* 1.默认配置\n\t\t*/\n\t\tfileChooser.open();\n\t\t\n\t\t/*\n\t\t* 2.自定义配置\n\t\t*/\n                 fileChooser.setThemeColor(R.color.colorPrimary)\n                        .setTitle(\"选择目录\")\n                         .setCurrentPath(\"/storage/emulated/0/Android/data/com.tencent.mm/files\")\n                         .setBackIconRes(R.drawable.back_white)\n                         .setDoneText(\"OK\")\n                         .showFile(false)\n                         .open();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccapton%2Ffilechooser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccapton%2Ffilechooser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccapton%2Ffilechooser/lists"}