我的問題是再往里面加元素就會出錯
private int[] icon={R.drawable.games_control,R.drawable.youtube,
? ? ? ?R.drawable.world,R.drawable.weather,R.drawable.speech_balloon,};
private String[] iconName={"游戲","youtube","world","weather","speech_balloon",};
如果超過這個數(shù)就會報錯
2015-11-05
如1樓所說
2個數(shù)組本身除了最后一個“,”沒有錯。
在這個案例中,你要保證2個數(shù)組的長度是一致的。
查看log日志的錯誤信息,那才是關(guān)鍵。查看log日志的錯誤信息,那才是關(guān)鍵。查看log日志的錯誤信息,那才是關(guān)鍵。
2015-11-02
為什么最后"speech_balloon"的后面有","?