Is there any way to Detect userInterations in Android fragments?
问题 Could any one help me out with this situation. I have implemented OnUserInteraction() method for Android Activity it is working fine for me. But I want it for Fragments too.How can i able call OnUserInteraction() or is there any another way to identify userInteraction with the UI . 回答1: @Sunil's answer causes java.lang.StackOverflowError so I corrected it. Below code works smoothly Create a java class in your app named UserInterationListener and put below code there public interface