============問題描述============java
List<WeatherInfo.index> myIndex = weatherInfo.getIndex(); for (index in : myIndex) { Log.i(TGA, "Des = " + in.getTipt() + ":" + in.getDes()); indexContent.setText(in.getTipt() + ":" + in.getDes() + "\n"); }
============解決方案1============app
============解決方案2============blog
============解決方案3============ip
3樓的方法能夠這麼改:String str = ""; for(index in : myIndex){ str += (in.getTipt() + ":" + in.getDes() + "\n"); } indexContent.setText(str);