I am working with Android Studio. I have a fragment on my Activty and I want to hide it when the user clicks on it.
For some reason I can′t just override a function for onclick like in the activties. And everytime I ask google all I can find are questions about how to
Implement onclick listeners for buttons or other elements in a fragment but that is not what I want. I want the onclick listener for the fragment itself.
Can anyone please tell me how to do that!?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…