How can I check if a view is visible or not in Android? [duplicate]

This question already has answers here: Android: how to check if a View inside of ScrollView is visible? (15 answers) Closed 6 years ago. I set visibility to invisible like this on Android: myImageView.setVisibility(View.INVISIBLE); And then to make it visible: myImageView.setVisibility(View.VISIBLE); Now I don’t know if myImageView is visible or not, how can I check … Read more