Android-DirectoryChooser alternatives and similar packages
Based on the "Other Widget" category.
Alternatively, view Android-DirectoryChooser alternatives based on common mentions on social networks and blogs.
-
AndroidSlidingUpPanel
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano. -
BottomBar
(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern. -
ShortcutBadger
An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers. -
Litho (By Facebook)
A declarative framework for building efficient UIs on Android. -
SystemBarTint
[DEPRECATED] Apply background tinting to the Android system UI when using KitKat translucent modes -
DragSortListView
Android ListView with drag and drop reordering. -
TapTargetView
An implementation of tap targets from the Material Design guidelines for feature discovery. -
android-viewbadger
[DEPRECATED] A simple way to "badge" any given Android view at runtime without having to cater for it in layout -
android-stackblur
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann. -
android-iconify
Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,... -
AndroidViewHover
An elegant way to show your menu or messages. -
android-pdfview
[DEPRECATED] A fast PDF reader component for Android development -
DraggablePanel
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component. -
AndroidTreeView
AndroidTreeView. TreeView implementation for android -
android-pathview
Android view with both path from constructed path or from svg. -
KenBurnsView
Android ImageViews animated by Ken Burns Effect -
aFileChooser
[DEPRECATED] Android library that provides a file explorer to let users select files on external storage. -
Swipecards
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content. -
MaterialIntroScreen
Inspired by Heinrich Reimer Material Intro and developed with love from scratch -
TourGuide
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View -
android-viewflow
A horizontal view scroller library for Android -
Flow
Name UI states, navigate between them, remember where you've been. -
MultiSnapRecyclerView
Android library for multiple snapping of RecyclerView -
chromeview
Android WebView implementation that uses the latest Chromium code -
android-segmented-control
ios UISegmentedControl for android -
TastyToast
:bread: Make your native android Toasts Tasty -
StickyGridHeaders
An Android Library that makes it easy to make grid views with sectioned data and headers that stick to the top. -
AnimatedSvgView
Animated SVG Drawing for Android -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation -
range-bar
Android widget for selecting a range of values. -
HoloColorPicker
An Android Holo themed colorpicker designed by Marie Schweiz -
ElasticDownload
We are not Gif makers, We are developers -
TileView
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing. -
Android-SwipeToDismiss
Android swipe-to-dismiss mini-library and sample code -
StandOut
StandOut lets you easily create floating windows in your Android app. -
Bubbles for Android
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development. -
Flashbar
⚡️A highly customizable, powerful and easy-to-use alerting library for Android. -
FancyCoverFlow
A cool Open Source CoverFlow view for Android with several fancy effects. -
Emoji
A library to add Emoji support to your Android / JVM Application -
SwipeStack
A simple, customizable and easy to use swipeable view stack for Android. -
NiftyNotification
effects for android notifications -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
android-sliding-layer-lib
Highly customizable SlidingLayer as you have seen in Wunderlist -
android-uitableview
Library and example project on how to use the UITableView component -
SortableTableView
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs. -
ScratchView
ScratchView repo is UX Design involving scratch cards like views which are scratched to reveal the information they conceal.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Android-DirectoryChooser or a related project?
README
Android DirectoryChooser
A simple directory chooser you can integrate into your Android app.
This version of the library has no additional dependencies, but requires Android v11+ to work. There is, however, a pre-v11-branch that supports down to v7 using ActionBarSherlock.
You can download the sample app from the Play Store:
Based on the DirectoryChooser from the excellent AntennaPod App by danieloeh.
As stand-alone Activity As DialogFragment
Usage
For a full example see the sample
app in the
repository.
From Maven Central
Library releases are available on Maven Central, snapshots can be retrieved from Sonatype:
Release (SDK 11+)
Gradle
compile 'net.rdrei.android.dirchooser:library:[email protected]'
Maven
<dependency>
<groupId>net.rdrei.android.dirchooser</groupId>
<artifactId>library</artifactId>
<version>3.2</version>
<type>aar</type>
</dependency>
Release (SDK 7+)
Gradle
compile 'net.rdrei.android.dirchooser:library:[email protected]'
Maven
<dependency>
<groupId>net.rdrei.android.dirchooser</groupId>
<artifactId>library</artifactId>
<version>1.0-pre-v11</version>
<type>aar</type>
</dependency>
Snapshot (SDK 11+)
compile 'net.rdrei.android.dirchooser:library:[email protected]'
Snapshot (SDK 4+)
compile 'net.rdrei.android.dirchooser:library:[email protected]'
As Library Project
Alternatively, check out this repository and add it as a library project.
$ git clone https://github.com/passy/Android-DirectoryChooser.git
Import the project into your favorite IDE and add
android.library.reference.1=/path/to/Android-DirectoryChooser/library
to your
project.properties
.
Manifest
You need to declare the DirectoryChooserActivity
and request the
android.permission.WRITE_EXTERNAL_STORAGE
permission.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
...
<application>
<activity android:name="net.rdrei.android.dirchooser.DirectoryChooserActivity" />
</application>
Activity
To choose a directory, start the activity from your app logic:
final Intent chooserIntent = new Intent(this, DirectoryChooserActivity.class);
final DirectoryChooserConfig config = DirectoryChooserConfig.builder()
.newDirectoryName("DirChooserSample")
.allowReadOnlyDirectory(true)
.allowNewDirectoryNameModification(true)
.build();
chooserIntent.putExtra(DirectoryChooserActivity.EXTRA_CONFIG, config);
// REQUEST_DIRECTORY is a constant integer to identify the request, e.g. 0
startActivityForResult(chooserIntent, REQUEST_DIRECTORY);
Handle the result in your onActivityResult
method:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_DIRECTORY) {
if (resultCode == DirectoryChooserActivity.RESULT_CODE_DIR_SELECTED) {
handleDirectoryChoice(data
.getStringExtra(DirectoryChooserActivity.RESULT_SELECTED_DIR));
} else {
// Nothing selected
}
}
}
Fragment
You can also use the underlying DialogFragment for even better integration.
Whether you use the Fragment as a Dialog or not is completely up to you. All you
have to do is implement the OnFragmentInteractionListener
interface to respond
to the events that a directory is selected or the user cancels the dialog:
public class DirChooserFragmentSample extends Activity implements
DirectoryChooserFragment.OnFragmentInteractionListener {
private TextView mDirectoryTextView;
private DirectoryChooserFragment mDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.dialog);
final DirectoryChooserConfig config = DirectoryChooserConfig.builder()
.newDirectoryName("DialogSample")
.build();
mDialog = DirectoryChooserFragment.newInstance(config);
mDirectoryTextView = (TextView) findViewById(R.id.textDirectory);
findViewById(R.id.btnChoose)
.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mDialog.show(getFragmentManager(), null);
}
});
}
@Override
public void onSelectDirectory(@NonNull String path) {
mDirectoryTextView.setText(path);
mDialog.dismiss();
}
@Override
public void onCancelChooser() {
mDialog.dismiss();
}
}
If calling the directory chooser from your own fragment, be sure to set the target fragment first:
@Override
public void onClick(View v) {
mDialog.setTargetFragment(this, 0);
mDialog.show(getFragmentManager(), null);
}
Configuration
The Directory Chooser is configured through a parcelable configuration object, which is great because it means that you don't have to tear your hair out over finicky string extras. Instead, you get auto-completion and a nice immutable data structure. Here's what you can configure:
newDirectoryName
: String (required)
Name of the directory to create. User can change this name when he creates the
folder. To avoid this use allowNewDirectoryNameModification
argument.
initialDirectory
: String (default: "")
Optional argument to define the path of the directory that will be shown first.
If it is not sent or if path denotes a non readable/writable directory or it is not a directory,
it defaults to android.os.Environment#getExternalStorageDirectory()
.
allowReadOnlyDirectory
: Boolean (default: false)
Argument to define whether or not the directory chooser allows read-only paths to be chosen. If it false only directories with read-write access can be chosen.
allowNewDirectoryNameModification
: Boolean (default: false)
Argument to define whether or not the directory chooser allows modification of provided new directory name.
Example
final DirectoryChooserConfig config = DirectoryChooserConfig.builder()
.newDirectoryName("DialogSample")
.allowNewDirectoryNameModification(true)
.allowReadOnlyDirectory(true)
.initialDirectory("/sdcard")
.build();
Apps using this
Popcorn Time for Android Emby for Android Downloader for SoundCloud Wallpaper Changer XnRetro InstaSave ML Manager AutoGuard Companion for Band Swallow Server Photo Map
To add your own app, please send a pull request.
Releasing
Preparation
To release a new snapshot on Maven Central, add your credentials to
~/.gradle/gradle.properties
(you get them from http://oss.sonatype.org) as
well as your signing GPG key:
signing.keyId=0x18EEA4AF
signing.secretKeyRingFile=/home/pascal/.gnupg/secring.gpg
NEXUS_USERNAME=username
NEXUS_PASSWORD=password
Staging
To upload a new snapshot, just run gradle's uploadArchives
command:
gradle :library:uploadArchives
Release
Update versions and remove -SNAPSHOT
suffixes.
gradle build :library:uploadArchives
License
Copyright 2013-2016 Pascal Hartig
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.
Thanks
Sample App icon by Frank Souza.
*Note that all licence references and agreements mentioned in the Android-DirectoryChooser README section above
are relevant to that project's source code only.