Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss from custom view #41

Open
savadmv opened this issue Oct 26, 2018 · 1 comment
Open

Dismiss from custom view #41

savadmv opened this issue Oct 26, 2018 · 1 comment

Comments

@savadmv
Copy link

savadmv commented Oct 26, 2018

I created a custom with one cancel button.I am not able to dismiss the BottomDialog Using bottomDialog.autoDismiss(true); .I want to dismiss the dialog when i click cancel button in custom view

@ilahi123
Copy link

ilahi123 commented Apr 3, 2021

   BottomDialog.Builder builder = new BottomDialog.Builder(getActivity());
    BottomDialog dialog = builder.build();


    dialog.getBuilder().setTitle("Awesome!");
    dialog.getBuilder().setContent("What can we improve? Your feedback is always welcome.");
    dialog.getBuilder().setIcon(R.drawable.app_icon);
    dialog.getBuilder().setCancelable(false);
    dialog.getBuilder().setCustomView(view);
    dialog.getBuilder().show();


    close_btn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            dialog.dismiss();

        }
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants