Skip to content
Advertisement

How to make Custom button work in custom alert Dialog Box using android

JavaScript

I am unable to make the custom button work , my requirement is simple when my custom dialog box is opened i have to dismiss it by simply clicking on button i dont want to use in-built alert dialog box buttons.Please help me thankyou in advance.

Advertisement

Answer

Declare your button xml on the dialog then setOnclickListener on that button

JavaScript
Advertisement