@Override public void setUpViews() { initTitle(R.string.my_invest_history, true); p_id = getIntent().getExtras().getString("p_id"); listView = (XListView) findViewById(R.id.list_view); listView.setPullLoadEnable(false); listView.setPullRefreshEnable(true); listView.setXListViewListener(this); listView.setAdapter(adapter = new FinacialHistoryAdapter(this)); addListTitle(); }
private void addListTitle() { View titleView = LayoutInflater.from(this).inflate(R.layout.activity_financial_history_title, null); titleBuyerCount = (TextView) titleView.findViewById(R.id.buyer_count); titlePrice = (TextView) titleView.findViewById(R.id.price); listView.addHeaderView(titleView); setTitleText("0", "0"); }