File/Folder picker dialog
See original GitHub issueI am going to create a simple file/folder chooser based on your library. For this purpose I would like to extending your SimpleListDialog
and customize onItemClick
:
import android.view.View;
import android.widget.AdapterView;
import eltos.simpledialogfragment.list.SimpleListDialog;
public class SimpleListDialogMod extends SimpleListDialog {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
super.onItemClick(parent, view, position, id);
//Some custom code
}
}
and use it as follows:
SimpleListDialogMod.build()
.title(titleResId)
.choiceMode(SimpleListDialog.SINGLE_CHOICE)
.choiceMin(1)
.items(itemNames)
.extra(extras)
.pos(R.string.button_deeper)
.neg(R.string.button_up)
.neut(R.string.button_pick)
.show(this, PICK_DIALOG);
but onItemClick
is never called when I press an item in the list! Why?
P.S. Would you be so kind to write your own SimplePickFileDialog? It is widely used and would be very useful as I suppose.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How do I use OpenFileDialog to select a folder? - Stack Overflow
They need to be in the desired folder and then just press Open while file name says "Folder Selection." C# Folder selection dialog....
Read more >VBA Select Folder with msoFileDialogFolderPicker - wellsr.com
Use msoFileDialogFolderPicker to browse for and select a folder with VBA. The msoFileDialogFolderPicker is part of the Application.
Read more >FolderBrowserDialog Class (System.Windows.Forms)
FolderBrowserDialog is a modal dialog box; therefore, when shown, it blocks the rest of the application until the user has chosen a folder....
Read more >How to create an open file/folder dialog box with PowerShell
The open file/folder dialog box is a great way to receive input for your scripts interactively. It provides a file browser that makes...
Read more >C# Open File Dialog for Select File or Folders - YouTube
Find the codes and Visual Studio Project here:https://csharp.agrimetsoft.com/exercises/Open_File_DialogC# Open File Dialog for Select File ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My implementation of FIle/Folder Picker Dialog based on your library.
I have never made a pull request before and I am not sure my code is acceptable for you. I think it would be better if you take my code, change it and include it in your code in consistence with your approach to the library construction.