ディレクトリ選択ダイアログ作成WIP

This commit is contained in:
ろむねこ 2024-01-25 11:41:38 +09:00
parent 1477169f6c
commit 031ef6f088
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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();
}
}