how can I catch the event when click occurs somewhere on the app screen?
It doesn’t matter if there is a button or something else. I just need to apply an onClick() event listener on the whole application screen.
How to do this?
how can I catch the event when click occurs somewhere on the app screen?
Share
setonclicklistnerfor main layout of your layout file….Like….main.xml
and set click listener for mainlayout…