gridcell = (Button) row.findViewById(R.id.calendar_day_gridcell);
gridcell.setText("Day 1");
URL url = new URL("http://172.16.4.29:81/pht/2013/9/18/3027_2013_9_18_12_14_56_b.JPG");
Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
如何设置bitmap
将bmp图片设置为按钮gridcells背景图片?如何将位图图像设置为按钮背景图片
是不是你有帮助的答案?如果你找到解决方案,请把你的.. –
看看[Android ImageButton示例](http://www.mkyong.com/android/android-imagebutton-example/)。 – kenorb