A custom view to provide a reusable file explorer as a directory view. It provides common opertaion listener like OnFileSelected
, OnDirChange
.
Built-in Breadcumbs are provided to make navigation easy.
inside your_layout.xml , simply add the following
<com.lerryrowy.directoryview.ui.DirectoryView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/directoryview"
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.lerryrowy.directoryview.ui.DirectoryView>
In your MainActivity.java , which contains the DirectoryView, you also need yo override the onBackPressed()
method to support backToStack
@Override
public void onBackPressed(){
if(!directoryView.backToStack()){
super.onBackPressed();
}
}
- BreadcrumbView
- Complete set of file icons (mp3, aac, etc....)
- File preview