btn_dp.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub num++; if (num % 2 == 0) { dp_lv.setVisibility(View.GONE); } else { dp_lv.setVisibility(View.VISIBLE); } } });
btn_dp.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub num++; if (num % 2 == 0) { dp_lv.setVisibility(View.GONE); } else { dp_lv.setVisibility(View.VISIBLE); } } });
转载于:https://www.cnblogs.com/yangcong/p/3309497.html