@Override public void onClick(View v) { String lotnoString = v.getTag(R.id.caizhong_set_checkbox).toString(); if (CheckUtil.isWillSale(lotnoString, shellRW)) { PublicMethod.showMessage( mContext, PublicMethod.getMessageByLoto(mContext, shellRW, lotnoString)); } else if (CheckUtil.isTickedClosed(lotnoString, shellRW)) { PublicMethod.showMessage( mContext, PublicMethod.getMessageByLoto(mContext, shellRW, lotnoString)); } else { String checkOpenOrClosed = shellRW.getStringValue(lotnoString); if (checkOpenOrClosed.equals(Constants.CAIZHONG_OPEN)) { shellRW.putStringValue( v.getTag(R.id.caizhong_set_checkbox).toString(), Constants.CAIZHONG_CLOSE); v.setBackgroundResource(R.drawable.off); } else { shellRW.putStringValue( v.getTag(R.id.caizhong_set_checkbox).toString(), Constants.CAIZHONG_OPEN); v.setBackgroundResource(R.drawable.on); } } }