XamarinFileChooser 1.2.0
dotnet add package XamarinFileChooser --version 1.2.0
NuGet\Install-Package XamarinFileChooser -Version 1.2.0
<PackageReference Include="XamarinFileChooser" Version="1.2.0" />
paket add XamarinFileChooser --version 1.2.0
#r "nuget: XamarinFileChooser, 1.2.0"
// Install XamarinFileChooser as a Cake Addin #addin nuget:?package=XamarinFileChooser&version=1.2.0 // Install XamarinFileChooser as a Cake Tool #tool nuget:?package=XamarinFileChooser&version=1.2.0
xamarin-file-chooser binding of android-file-chooser
NuGet
android-file-chooser
Snapshots
<table><tr><td> <img src="https://raw.githubusercontent.com/hedzr/android-file-chooser/master/captures/choose_file.png" width="360"/> </td><td> <img src="https://raw.githubusercontent.com/hedzr/android-file-chooser/master/captures/choose_folder.png" width="360"/> </td><td> <img src="https://user-images.githubusercontent.com/27736965/55721190-c0616e80-5a13-11e9-982e-6fa1431be8ed.gif" width="360"/> </td></tr> <tr align="center"> <img src="https://user-images.githubusercontent.com/27736965/55720938-1b469600-5a13-11e9-8953-70cf86f4af11.gif" width="1080"/> </tr> </table>
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.
<a href='https://play.google.com/store/apps/details?id=com.obsez.android.lib.filechooser.demo&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' width='240' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/></a>
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid403 is compatible. |
-
- Xamarin.Android.Support.v7.AppCompat (>= 28.0.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Release 1.2.0