要把資料從DB讀出來加在ListView裡
可以用SimpleAdapter或SimpleCursorAdapter
前者要自己管理Cursor
後者只要設好資料來源就可以
PaaKJaT 發表在 痞客邦 留言(0) 人氣(845)
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
View view=l.getChildAt(position);
TextView text = (TextView) view.findViewById(android.R.id.text1);
}
PaaKJaT 發表在 痞客邦 留言(0) 人氣(208)