直接贴API: img.getDrawable().getConstantState().equals(getResources().getDrawable(R.drawable.kongwei).getConstantState())