怎么判断ImageView 为空

Posted ZhangJiQun.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了怎么判断ImageView 为空相关的知识,希望对你有一定的参考价值。

目录

怎么判断ImageView 为空


怎么判断ImageView 为空

@BindView(R.id.userHeaderImage)
ImageView userHeaderImage;
if (userHeaderImage.getDrawable()==null){
    ToastUtils.show(VertifyInfoActivity.this,"头像信息不存在");
}else {
    goCamera();
}

以上是关于怎么判断ImageView 为空的主要内容,如果未能解决你的问题,请参考以下文章