All Projects → imLibo → Filepicker

imLibo / Filepicker

Licence: mit
🔥🔥🔥Android文件、图片选择器,可按文件夹查找,文件类型查找,支持自定义相机

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Filepicker

Cordova Plugin Mediapicker
cordova android ios mediaPicker support selection of multiple image and video gif ✨ cordova android 和 ios 图片视频选择cordova插件,支持多图 视频 gif,ui类似微信
Stars: ✭ 136 (-48.68%)
Mutual labels:  compress, imagepicker
ImagePickerView
🌇 PHPickerViewController / UIImagePickerController for SwiftUI
Stars: ✭ 18 (-93.21%)
Mutual labels:  imagepicker
img-master
An image batch processing tool with multifunctional and unlimited
Stars: ✭ 63 (-76.23%)
Mutual labels:  compress
pdf-scripts
📑 Scripts to repair, verify, OCR, compress, wrangle, crop (etc.) PDFs
Stars: ✭ 33 (-87.55%)
Mutual labels:  compress
ConvenientImagePicker
🏞🌅🌄🎇🌇🏙🌃🌉🌁the new iOS image picker. Beautiful, delicate, and customizable.
Stars: ✭ 44 (-83.4%)
Mutual labels:  imagepicker
ACCV TinyGAN
BigGAN; Knowledge Distillation; Black-Box; Fast Training; 16x compression
Stars: ✭ 62 (-76.6%)
Mutual labels:  compress
ImageCompress
一个超级强大的一行代码图片压缩工具,支持多个压缩、单个压缩、压缩后的bitmap
Stars: ✭ 73 (-72.45%)
Mutual labels:  compress
ruby-magic
Simple interface to libmagic for Ruby Programming Language
Stars: ✭ 23 (-91.32%)
Mutual labels:  mime-types
PLzmaSDK
PLzmaSDK is (Portable, Patched, Package, cross-P-latform) Lzma SDK.
Stars: ✭ 28 (-89.43%)
Mutual labels:  compress
ImagePicker-OLX
No description or website provided.
Stars: ✭ 77 (-70.94%)
Mutual labels:  imagepicker
transmat
Share data beyond the browser boundaries. Enable users to transfer data to external apps, and open your webapp to receive external data.
Stars: ✭ 453 (+70.94%)
Mutual labels:  mime-types
ProPicker
ProPicker is a file picker (image, video, file) library for Android. It helps you to pick any file and return the result in a convenient way
Stars: ✭ 25 (-90.57%)
Mutual labels:  imagepicker
mimetypes
Erlang MIME types library
Stars: ✭ 77 (-70.94%)
Mutual labels:  mime-types
minizip-asm.js
Minizip in javascript. Work with password. Demo:
Stars: ✭ 38 (-85.66%)
Mutual labels:  compress
EasyCompressor
⚡ A compression library that implements many compression algorithms such as LZ4, Zstd, LZMA, Snappy, Brotli, GZip, and Deflate. It helps you to improve performance by reducing Memory Usage and Network Traffic for caching.
Stars: ✭ 167 (-36.98%)
Mutual labels:  compress
XGImagePickerController
iOS相册图片/视频选择器
Stars: ✭ 32 (-87.92%)
Mutual labels:  imagepicker
react-native-compressor
The lightweight library for compress image, video, and audio with an awesome experience
Stars: ✭ 157 (-40.75%)
Mutual labels:  compress
csso-webpack-plugin
CSSO full restructuring minification files to serve your webpack bundles
Stars: ✭ 104 (-60.75%)
Mutual labels:  compress
lzbase62
LZ77(LZSS) based compression algorithm in base62 for JavaScript.
Stars: ✭ 38 (-85.66%)
Mutual labels:  compress
Mime
.NET wrapper for libmagic
Stars: ✭ 51 (-80.75%)
Mutual labels:  mime-types

介绍

由于暂时没有更多的精力在此项目上,现将此项目转让给其他人,谁来认领一下,一起把这个库搞下去,加我微信bo_744172447,谢谢!


  1. 可在文件浏览器中选择指定后缀名文件
  2. 可通过扫描全盘的方式,选择指定后缀名的文件
  3. 类似微信图片选择器选择图片或视频
  4. 图片选择页面可以自定义主题
  5. 支持Activity、Fragment

Example


FilePicker FilePicker FilePicker
FilePicker FilePicker FilePicker


可下载APK直接体验

Demo.apk


用法

implementation 'cn.imlibo:FilePicker:v0.0.5_alpha'
一、 在文件浏览器中选择指定文件
FilePicker.from(this)
                .chooseForBrowser()
                .setMaxCount(2)
                .setFileTypes("png", "doc","apk", "mp3", "gif", "txt", "mp4", "zip")
                .requestCode(REQUEST_CODE_CHOOSE)
                .start();
二、 分类查找指定后缀名文件
FilePicker
                .from(this)
                .chooseForMimeType()
                .setMaxCount(10)
                .setFileTypes("png", "doc","apk", "mp3", "gif", "txt", "mp4", "zip")
                .requestCode(REQUEST_CODE_CHOOSE)
                .start();
三、 在图片选择器中选择图片或视频
FilePicker
                .from(this)
                .chooseMedia()
                .enabledCapture(true)
                .setTheme(R.style.FilePicker_Dracula)
                .requestCode(REQUEST_CODE_CHOOSE)
                .start();
四、 接收返回的文件数据,在 ++onActivityResult++ 方法中获取。选中文件以链表方式返回, ++EssFile++ 类为载体
@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode != RESULT_OK) {
            return;
        }
        if (requestCode == REQUEST_CODE_CHOOSE) {
            ArrayList<EssFile> essFileList = data.getParcelableArrayListExtra(Const.EXTRA_RESULT_SELECTION);
            StringBuilder builder = new StringBuilder();
            for (EssFile file :
                    essFileList) {
                builder.append(file.getMimeType()).append(" | ").append(file.getName()).append("\n\n");
            }
            textView.setText(builder.toString());
        }
    }

属性列表


名称 描述 默认值
FileTypes 需要显示的文件类型
SortType 排序类型 按名字排序 BY_NAME_ASC
isSingle 是否单选 false
maxCount 最大可选中数量 10
request_code 请求码
onlyShowImages 是否仅显示图片(仅当其实chooseMedia时有效) false
onlyShowVideos 是否仅显示视频(仅当其实chooseMedia时有效) false
enabledCapture chooseMedia时是否显示照相机 false
placeHolder 图片的PlaceHolder png_holder
themeId 主题ID R.Style.FilePicker_Elec

自定义主题


<style name="FilePicker.Elec" parent="Theme.AppCompat.Light.NoActionBar">
		<item name="colorPrimary">@color/elec_primary</item>
		<item name="colorPrimaryDark">@color/elec_primary_dark</item>
		<item name="toolbar">@style/Toolbar.elec</item>
		<item name="album.dropdown.title.color">@color/elec_album_dropdown_title_text</item>
		<item name="album.dropdown.count.color">@color/elec_album_dropdown_count_text</item>
		<item name="album.element.color">@android:color/white</item>
		<item name="album.thumbnail.placeholder">@color/elec_album_dropdown_thumbnail_placeholder</item>
		<item name="album.emptyView">@drawable/ic_empty_elec</item>
		<item name="album.emptyView.textColor">@color/elec_album_empty_view</item>
		<item name="item.placeholder">@color/elec_item_placeholder</item>
		<item name="item.checkCircle.backgroundColor">@color/elec_item_checkCircle_backgroundColor</item>
		<item name="item.checkCircle.borderColor">@color/elec_item_checkCircle_borderColor</item>
		<item name="page.bg">@color/elec_page_bg</item>
		<item name="bottomToolbar.bg">@color/elec_bottom_toolbar_bg</item>
		<item name="bottomToolbar.preview.textColor">@color/elec_bottom_toolbar_preview</item>
		<item name="bottomToolbar.apply.textColor">@color/elec_bottom_toolbar_apply</item>
		<item name="preview.bottomToolbar.back.textColor">@color/elec_preview_bottom_toolbar_back_text</item>
		<item name="preview.bottomToolbar.apply.textColor">@color/elec_preview_bottom_toolbar_apply</item>
		<item name="listPopupWindowStyle">@style/Popup.elec</item>
		<item name="capture.textColor">@color/elec_capture</item>
	</style>

Feature TODO


  • [ ] 根据文件类型打开/预览文件
  • [ ] 预览图片界面
  • [ ] 压缩图片
  • [ ] 裁剪图片
  • [ ] 自定义相机拍照
  • [ ] 去掉AndPermission依赖,用原生代码申请权限
  • [ ] 增加多种图片加载框架支持
  • [ ] 文件浏览器支持自定义主题
  • [ ] 分类选择文件界面支持自定义主题

THANKS


陈宇明大师兄 BaseRecyclerViewAdapterHelper

Android-FilePicker

Matisse

AndroidPicker

LICENSE

MIT License

Copyright (c) 2018

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].