显示两个阵列适配器

时间:2014-11-18 12:52:45

标签: android-arrayadapter

我想要显示

ArrayAdapter<com.example.database.Sms>adapter = new SmsAdapter(this,  smss);

ArrayAdapter<com.example.database2.part1> adapter = new DastanAdapter(this, part1);

但是根据我的代码,它只显示其中一个,但我想让它们都显示

public void refreshDisplay() {
    Log.i(com.example.database.DBAdapter.TAG, smss.size() + "= tedad smss");
    ArrayAdapter<com.example.database.Sms>adapter = new SmsAdapter(this, smss);
    setListAdapter(adapter);
}

public void refreshDisplay2() {
    Log.i(DBAdapter.TAG, part1.size() + "= tedad part1");
    ArrayAdapter<com.example.database2.part1> adapter = new DastanAdapter(this, part1);
    setListAdapter(adapter);
}

0 个答案:

没有答案