android listView 中存在editView chetxBox等点击事件处理
2010-05-24 16:32:00 来源:WEB开发网}
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// preloading our icons
mIconEnabled = BitmapFactory.decodeResource(this.getResources(),
R.drawable.globe2_32×32);
mIconDisabled = BitmapFactory.decodeResource(this.getResources(),
R.drawable.globe2_32×32_trans);
// fill list with some items…
// to demonstrate the performance we create a bunch of data objects
for (int i = 0; i < 250; ++i) {
mObjectList.add(new MyData("Some Text " + i, true));
}
//here we set our adapter
setListAdapter(new MyClickableListAdapter(this,
R.layout.clickablelistitemview, mObjectList));
}
// --------------- field section -----------------
private Bitmap mIconEnabled;
private Bitmap mIconDisabled;
private List mObjectList = new ArrayList();
}
更多精彩
赞助商链接