Android 学习之---listview adapter分析(二)

2014-11-24 10:33:52 · 作者: · 浏览: 1
ol.setText( Integer.toString( weather.temperature ) );
addView( temperatureControl, temperatureParams);

LinearLayout.LayoutParams skyParams =
new LinearLayout.LayoutParams(25, LayoutParams.WRAP_CONTENT);

ImageView skyControl = new ImageView( context );
Log.d( LOG_TAG, weather.getCity()+" -> "+weather.sky );
skyControl.setImageResource( weather.getSkyResource() );
addView( skyControl, skyParams );
}
}