All Projects → nbsp-team → Materialfilepicker

nbsp-team / Materialfilepicker

Licence: apache-2.0
Picking files since 2015

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Materialfilepicker

React Native Paper Dates
Smooth and fast cross platform Material Design date and time picker for React Native Paper
Stars: ✭ 173 (-83.62%)
Mutual labels:  material, picker
Materialdaterangepicker
A material Date Range Picker based on wdullaers MaterialDateTimePicker
Stars: ✭ 1,315 (+24.53%)
Mutual labels:  material, picker
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (-74.24%)
Mutual labels:  material, picker
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (-84%)
Mutual labels:  material, picker
Vuetify Daterange Picker
The missing date range picker for Vuetify JS you have been looking for.
Stars: ✭ 192 (-81.82%)
Mutual labels:  material, picker
Card settings
A flutter package for building card based forms.
Stars: ✭ 256 (-75.76%)
Mutual labels:  material, picker
Singledateandtimepicker
You can now select a date and a time with only one widget !
Stars: ✭ 921 (-12.78%)
Mutual labels:  material, picker
Flutter Neumorphic
A complete, ready to use, Neumorphic ui kit for Flutter, 🕶️ dark mode compatible
Stars: ✭ 988 (-6.44%)
Mutual labels:  material
Material Motion
Starmap and team docs
Stars: ✭ 44 (-95.83%)
Mutual labels:  material
Dejajs Components
Angular components
Stars: ✭ 37 (-96.5%)
Mutual labels:  material
Bluetooth State View
Material design animated Bluetooth state view for Android
Stars: ✭ 36 (-96.59%)
Mutual labels:  material
Future Web
Starter kit to create PWA with cutting edge technologies
Stars: ✭ 38 (-96.4%)
Mutual labels:  material
Swifthuecolorpicker
iOS HUE color picker
Stars: ✭ 44 (-95.83%)
Mutual labels:  picker
Materialsearchview
Android Search View based on Material design guidelines.
Stars: ✭ 987 (-6.53%)
Mutual labels:  material
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (-95.64%)
Mutual labels:  picker
Hhu course
HHU-CS 河海大学计算机专业课资料汇总
Stars: ✭ 37 (-96.5%)
Mutual labels:  material
Materialette
Materialette - A material design color palette
Stars: ✭ 1,056 (+0%)
Mutual labels:  material
Viewtooltip
A fluent tooltip for Android
Stars: ✭ 1,029 (-2.56%)
Mutual labels:  material
Wheelpicker
仿 iOS UIPickerView 的滚动选择器
Stars: ✭ 41 (-96.12%)
Mutual labels:  picker
Material Bottom Nav
A bottom navigation bar adhering to the Material Design specification.
Stars: ✭ 41 (-96.12%)
Mutual labels:  material

Material File Picker Android Arsenal Download

Material file picker library for Android

Using

Add repository url and dependency in application module gradle file:

repositories {
    jcenter()
}

dependencies {
    implementation 'com.nbsp:materialfilepicker:1.9.1'
}

Open file picker:

MaterialFilePicker()
    // Pass a source of context. Can be:
    //    .withActivity(Activity activity)
    //    .withFragment(Fragment fragment)
    //    .withSupportFragment(androidx.fragment.app.Fragment fragment)
    .withActivity(this)
    // With cross icon on the right side of toolbar for closing picker straight away
    .withCloseMenu(true)
    // Entry point path (user will start from it)
    .withPath(alarmsFolder.absolutePath)
    // Root path (user won't be able to come higher than it)
    .withRootPath(externalStorage.absolutePath)
    // Showing hidden files
    .withHiddenFiles(true)
    // Want to choose only jpg images
    .withFilter(Pattern.compile(".*\\.(jpg|jpeg)$"))
    // Don't apply filter to directories names
    .withFilterDirectories(false)
    .withTitle("Sample title")
    .withRequestCode(FILE_PICKER_REQUEST_CODE)
    .start()

Override on activity result:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == 1 && resultCode == RESULT_OK) {
        String filePath = data.getStringExtra(FilePickerActivity.RESULT_FILE_PATH);
        // Do anything with file
    }
}

Runtime permissions:

You should handle runtime permissions in activity, from what you called Material File Picker. Look here for example code.

Third Party Bindings

React Native

You may now use this library with React Native via the module here

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].