Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Guiorgy/xamarin-file-chooser

Repository files navigation

xamarin-file-chooser binding of android-file-chooser

banner

NuGet

NuGet

android-file-chooser

Android Arsenal Download Release

Snapshots

More images (beyond v1.1.16) can be found at Gallery

Demo Application

A demo-app of the original can be installed from Play Store.

Get it on Google Play

Usage

using Com.Obsez.Android.Lib.Filechooser;
using static Com.Obsez.Android.Lib.Filechooser.Listeners;

ChooserDialog chooserDialog = new ChooserDialog(context)
    .WithStringResources(dirOnly.isChecked() ? "Choose a folder" : "Choose a file",
    	"Choose", "Cancel")
    .WithOptionStringResources("New folder",
    	"Delete", "Cancel", "Ok")
    .EnableOptions(true)
    .DisplayPath(true)
    .WithChosenListener((dir, dirFile) =>
    {
        if (continueFromLast.Checked)
        {
            _path = dir;
        }
        Toast.MakeText(ctx, (dirFile.IsDirectory ? "FOLDER: " : "FILE: ") + dir, ToastLength.Short).Show();
    })
    .Show();

For more information please refere to the original repo, and don't forget to give it a ⭐!
Logo and banner originally by: iqbalhood

Licence

Standard Apache 2.0

Copyright 2015-2019 Hedzr Yeh
Modified 2018-2019 Guiorgy

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

android-file-chooser by hedzr