I've been browsing to the following example:
http://www.ezzylearning.com/tutorial.aspx?tid=1763429
It's a Customizing Android ListView Items with Custom ArrayAdapter.
Everything static is working, but I don't get it dynamically:
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")
};
For dynamically data it says:
Weather weather_data[] = youservice.GetWeatherData();
Can you someone please give an example how to implement the
youservice.GetWeatherData();
I've tried a lot of things, but don't manage it.
youservice.GetWeatherData();is simple function return the right format input data for you adapter. In your case, it return an array ofWeather. TheDynamicis far from simple answer. There're too many ways to provide input data.