我一直在浏览以下示例:
http://www.ezzylearning.com/tutorial.aspx?tid=1763429
这是一个ListView
使用Custom ArrayAdapter
.
一切都是静态的,但我没有动态地得到它:
Weather weather_data[] = new Weather[]
{
new Weather(R.drawable.weather_cloudy, "Cloudy"),
new Weather(R.drawable.weather_showers, "Showers"),
new Weather(R.drawable.weather_snow, "Snow"),
new Weather(R.drawable.weather_storm, "Storm"),
new Weather(R.drawable.weather_sunny, "Sunny")
};
对于动态数据,它说:
Weather weather_data[] = youservice.GetWeatherData();
你可以举一个例子如何实施
youservice.GetWeatherData();
我已经尝试了很多事情,但没有管理它。