abhishekti7 / UnicornFilePicker

:eyes: A simple, documented, and contribution-friendly File Picker for Android.
Apache License 2.0
69 stars 13 forks source link

Using as part of existing view #5

Open mgood7123 opened 3 years ago

mgood7123 commented 3 years ago

is it possible to move this into a View?

For example, as an embedded file view in an app, similar to what PowerAmp does

Eg

FileManager fv = new FileManager(context);
// set options for file manager
fileManagerContainer.addView(fv);
abhishekti7 commented 3 years ago

Hello, Thank you for the suggestion. I will certainly look into it and will try to incorporate something similar.

mgood7123 commented 3 years ago

Hello, Thank you for the suggestion. I will certainly look into it and will try to incorporate something similar.

Thanks, i will too if i have the time :)

mgood7123 commented 3 years ago

do note, that every file picker on android arsenal offers itself as an activity/fragment, or a dialog, but NOT as a view :(

and most do not look as nice as this one does :(

and if this offers a fragment, then we MIGHT be able to use a fragment view in order to wrap the view

a possible example might be:

https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView

class FileManagerView extends androidx.fragment.app.FragmentContainerView {
    // ...
}

also it would be worth noting this as a way to embed the file manager into an existing viewgroup as i do not think that most users would know about FragmentContainerView though this is optional since the FileManagerView could just do all of this for the user :)