Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
 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");
 }