private void initUI() { xlistView = (XListView) findViewById(R.id.xlistview); xlistView.setXListViewListener(this, 0); xlistView.setRefreshTime(); datas = new ArrayList<CouponEntity>(); mAdapter = new CouponAdapter(this, datas); xlistView.setAdapter(mAdapter); currentPage = 1; lvDataState = UIHelper.LISTVIEW_DATA_EMPTY; xlistView.startLoadMore(); Button leftBar = (Button) findViewById(R.id.leftbar); accretionArea(leftBar); TextView titilBar = (TextView) findViewById(R.id.bartitle); titilBar.setText("乐购券"); Button rightBar = (Button) findViewById(R.id.rightbar); rightBar.setVisibility(View.GONE); }