android-filepicker icon indicating copy to clipboard operation
android-filepicker copied to clipboard

Allow strings to be assigned via parameters for more customization

Open alexeyvasilyev opened this issue 7 years ago • 3 comments

FilePickerDialog dialog = new FilePickerDialog(getContext(), properties);
dialog.setTitle("Title");
dialog.setSelectText("Select");
dialog.setCancelText("Cancel");
dialog.setLastEditedFormat("Last edited: %s");
dialog.setParentDirText("Parent directory");

alexeyvasilyev avatar Mar 20 '17 07:03 alexeyvasilyev

There are two functions for customizing button strings.

public void setPositiveBtnName(CharSequence positiveBtnNameStr); public void setNegativeBtnName(CharSequence negativeBtnNameStr);

But looks like @Angads25 forgets to add it to README again.

npes87184 avatar Mar 25 '17 07:03 npes87184

Yes, but other 3 strings cannot be changed.

alexeyvasilyev avatar Mar 25 '17 08:03 alexeyvasilyev

@alexeyvasilyev There is a setTitle() function in the Dialog. @npes87184 Unfortunately, it isn't possible to specify every method in First Page. For seeing all methods provided in the library, you can visit wiki page. I have spent a lot of time in making and updating it. Please have a look.

singhangadin avatar Apr 01 '17 21:04 singhangadin