mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
ディレクトリ選択ダイアログ作成WIP
This commit is contained in:
parent
1477169f6c
commit
031ef6f088
|
@ -0,0 +1,21 @@
|
||||||
|
package one.nem.lacerta.shared.ui;
|
||||||
|
|
||||||
|
import android.app.Dialog;
|
||||||
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.fragment.app.DialogFragment;
|
||||||
|
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
|
|
||||||
|
public class LacertaSelectDirDialog extends DialogFragment {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||||
|
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(getActivity());
|
||||||
|
builder.setTitle("Select Directory");
|
||||||
|
builder.setMessage("Please select a directory.");
|
||||||
|
builder.setPositiveButton("OK", null);
|
||||||
|
builder.setNegativeButton("Cancel", null);
|
||||||
|
return builder.create();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user