how to check if an ImageView is attached with image in android

imageViewOne.getVisibility() == 0

use this instead:

imageViewOne.getDrawable() == null

From documentation:

/**
* Gets the current Drawable, or null if no Drawable has been
* assigned.
*
* @return the view’s drawable, or null if no drawable has been
* assigned.
*
*/
public Drawable getDrawable() {

}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)