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

对话框如何消失? 在bindview点击按钮 #27

Open
yuzhouchaojiwudidiyi opened this issue May 23, 2019 · 4 comments
Open

对话框如何消失? 在bindview点击按钮 #27

yuzhouchaojiwudidiyi opened this issue May 23, 2019 · 4 comments

Comments

@yuzhouchaojiwudidiyi
Copy link

public void bindView(View v) {
这里面点击按钮如何消失对话框

@starock
Copy link

starock commented Aug 14, 2019

+1

@liuxuwei
Copy link

BottomDialog dialog = BottomDialog.create(getSupportFragmentManager());
dialog.setViewListener(v -> {
v.findViewById(R.id.xx).setOnClickListener(v1-{
dialog.dissmiss;
})
});

@BruceZhang2017
Copy link

+1

@zerorooot
Copy link

@Override
public void bindView(View v) {
    v.findViewById(R.id.xxx).setOnClickListener(e -> {
        Toast.makeText(v.getContext(), System.currentTimeMillis() + "", Toast.LENGTH_SHORT).show();
        this.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

5 participants