// API-list-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ private void loadData() { mDynamicBox.showLoadingLayout(); Map<String, String> params = new HashMap<String, String>(); params.put("token", AnjukeApp.getToken()); params.put("device_id", device_id); params.put("broker_id", AnjukeApp.getBrokerId()); MyJsonRequest<CDetailResponse> mRequest = new MyJsonRequest<CDetailResponse>( ApiUrls.CDETAIL, params, CDetailResponse.class, createResponseListener(), createErrorListener()); MyVolley.addtoRequestQueue(mRequest, this.getClass().getSimpleName()); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDynamicBox = new DynamicBox(this, R.layout.activity_customerdetail); mDynamicBox.setClickListener( new OnClickListener() { @Override public void onClick(View v) { loadData(); } }); initView(); ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle("客户资料"); device_id = getIntent().getStringExtra("device_id"); }