@Override public void onClick(View v) { switch (v.getId()) { case R.id.common_title_btn_back: { comeBackHome(); } break; case R.id.common_title_btn_right: if (limitbuyAdapter != null) { int tag = (Integer) common_title_btn_right.getTag(); if (1 == tag) { limitbuyAdapter.setBigPictureOrLittlePicture(0); common_title_btn_right.setBackgroundResource(R.drawable.bg_hot_prom_pager); common_title_btn_right.setTag(0); } else if (0 == tag) { limitbuyAdapter.setBigPictureOrLittlePicture(1); common_title_btn_right.setBackgroundResource(R.drawable.bg_topbar_switch_mini_false); common_title_btn_right.setTag(1); } } break; } }
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { if (arg2 > 0) { LimitBuyGoods limitBuyGoods = (LimitBuyGoods) limitbuyAdapter.getItem(arg2 - 1); Intent intent = new Intent(NewLimitbuyActivity.this, LimitbuyDetailActivity.class); intent.putExtra("fromPage", getString(R.string.appMeas_limitbuy)); intent.putExtra("rushBuy", limitBuyGoods); startActivity(intent); } }
@Override public void handleMessage(Message msg) { switch (msg.what) { case COUNT_DOWN_TIME: if (limitbuyAdapter != null) { limitbuyAdapter.changer(); } break; default: break; } }