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);
}
先View一個取得child位置
再從宣告TextView 變數
findViewById是該物件id
之後就可以用text.getText().toString()取得內容
全站熱搜