» 首頁 » 討論區 » Android程式設計 »listview android 換頁問題

listview android 換頁問題

發表人: 訪客
發表時間: 2012-07-18 14:28:57
private void gotoMainMenu() {
ListView list;
String[] items = {"first", "second", "third"};

list = (ListView) findViewById(R.id.listView1);

想問一下.....要怎麼寫才能 點下first, second, third 換到
first.xml
second.xml
third.xml
發表人: Seachaos
積分: 2432
發表時間: 2012-07-24 02:07:35
你可以使用在ListView的onClick事件中做切換Activity的方式來達成
這是一個比較簡單的方法 :)