Search in sources :

Example 1 with SimpleWeatherItem

use of tk.woppo.sunday.widget.SimpleWeatherItem in project SunDay by iQuick.

the class SimpleWeatherAdapter method getView.

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    SimpleWeatherModel model = mList.get(position);
    SimpleWeatherItem item;
    if (convertView == null) {
        item = SimpleWeatherItem_.build(mContext);
    } else {
        item = (SimpleWeatherItem) convertView;
    }
    item.bind(model, position);
    return item;
}
Also used : SimpleWeatherItem(tk.woppo.sunday.widget.SimpleWeatherItem) SimpleWeatherModel(tk.woppo.sunday.model.SimpleWeatherModel)

Aggregations

SimpleWeatherModel (tk.woppo.sunday.model.SimpleWeatherModel)1 SimpleWeatherItem (tk.woppo.sunday.widget.SimpleWeatherItem)1