Skip to content Skip to sidebar Skip to footer

How To Implement Dialogbox And Onlongclick At The Same Time On The Button?

I am working onLongClickListner and DialogBox I wanted to add button, when i click on it open a dialogBox (It first ask do you want to select the button) after click on the DialogB

Solution 1:

If you want to show answer with longClick on button you should attach onLongClickListener to this button.

  1. Implement onLongClickListener to your class
  2. In overrided method "onLongClick" write code that describes what answer you want to show.

Post a Comment for "How To Implement Dialogbox And Onlongclick At The Same Time On The Button?"