Android 判断ImageView使用的图片是drawable文件夹下的某个图片

版权声明:转载请注明 谢谢 https://blog.csdn.net/bigsungod/article/details/71170889
if(statusImageView.getDrawable().getCurrent().getConstantState()==getResources().getDrawable(R.drawable.icon_correct).getConstantState()){

}//icon_correct为图片名称

猜你喜欢

转载自blog.csdn.net/bigsungod/article/details/71170889