Wednesday, June 19, 2019

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

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


if (myImageView.getVisibility() == View.VISIBLE) {
    // Its visible
} else {
    // Either gone or invisible
}

No comments:

Post a Comment