BottomDialog icon indicating copy to clipboard operation
BottomDialog copied to clipboard

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

Open yuzhouchaojiwudidiyi opened this issue 5 years ago • 4 comments

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

yuzhouchaojiwudidiyi avatar May 23 '19 07:05 yuzhouchaojiwudidiyi

+1

starock avatar Aug 14 '19 16:08 starock

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

liuxuwei avatar Aug 16 '19 05:08 liuxuwei

+1

BruceZhang2017 avatar Mar 01 '20 23:03 BruceZhang2017

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

zerorooot avatar Jan 28 '21 04:01 zerorooot