WEB开发网
开发学院手机开发Android 开发 android listView 中存在editView chetxBox等点击... 阅读

android listView 中存在editView chetxBox等点击事件处理

 2010-05-24 16:32:00 来源:WEB开发网   
核心提示:}}@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);// preloading our iconsmIconEnabled = BitmapFactory.decodeResourc

}

}

@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();

}

上一页  2 3 4 5 6 7 

Tags:android listView 存在

编辑录入:coldstar [复制链接] [打 印]
赞助商链接