Answers for "Dialog Binding"

0

Dialog Binding

final Dialog dialog = new Dialog(requireActivity());
        dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        dialog.setCancelable(true);
        dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));

        DueDateDialogLayoutBinding binding = DueDateDialogLayoutBinding.inflate(LayoutInflater.from(requireContext()));
        dialog.setContentView(binding.getRoot());

        dialog.show();
Posted by: Guest on February-11-2022

Browse Popular Code Answers by Language