關(guān)于加入ListView的問題
lv=(ListView)findViewById(R.id.listView1);
//在這findViewById報(bào)錯(cuò)了。。
//The method findViewById(int) is undefined for the type TabHomeActivity去查說應(yīng)該加上View.
//也報(bào)錯(cuò)。。The method findViewById(int) is undefined for the type TabHomeActivity
是不是由于覆蓋的方法不對(duì)?
2015-05-22
你名字和布局名字有沖突,R文件里找不到資源ID
2015-05-21
后面應(yīng)該加個(gè)OnViewCreate()