-
-
Save codeforfun-jp/771ff25770adff4c4699472ab88c2681 to your computer and use it in GitHub Desktop.
Dialog Full Screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyDialogFragment extends DialogFragment { | |
@NonNull | |
@Override | |
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { | |
return new AlertDialog.Builder(requireActivity(), R.style.DialogTheme) | |
.setTitle("タイトル") | |
.setMessage("ここにメッセージが入ります。ここにメッセージが入ります。") | |
.setPositiveButton("OK", (dialog, id) -> { | |
}) | |
.create(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment