dialogplus icon indicating copy to clipboard operation
dialogplus copied to clipboard

onclick Margin Bottom

Open alextorres50 opened this issue 6 years ago • 3 comments

Hi i add a setMargins(0,0,0,marginBottom)

but in this space (45dp) de onclicklistener and touch doesn't work

any solution?

alextorres50 avatar Dec 05 '17 00:12 alextorres50

Do you mean click on the overlay area below dialog?

orhanobut avatar Apr 09 '18 12:04 orhanobut

Yes @orhanobut , if we set margin from Bottom, it is not possible to click overlay area and dismiss the dialog. Any recommendations??

orcuns avatar Sep 17 '19 12:09 orcuns

((dialogPlus.holderView.parent as LinearLayout).parent as FrameLayout)
.setOnClickListener {
                dialogPlus.dismiss()
}

This is a nice workaround if you've set margin from bottom and wanted to dismiss the dialog on overlay click

orcuns avatar Sep 17 '19 12:09 orcuns