2011-03-11 3 views

답변

1

는 어댑터와 통화에서 항목을 삭제 목록보기에서 항목을 삭제하는 방법 도와주세요 목록보기에서 항목을 제거합니다 notifyDataSetChanged(). listview의 내용을 새로 고쳐야합니다.

+0

당신은 –

+1

가있어 코드 ..... 감사 –

0
public View getView(int position, View convertView, ViewGroup parent) { 

      final TableRow row = this.rows.get(position); 
ImageButton imgButton = (ImageButton) itemView.findViewById(R.id.icon); 
     imgButton.setTag(row); 




@Override 
    public void onClick(View v) { 
     ImageButton button = (ImageButton) v; 
     TableRow row = (TableRow) button.getTag(); 

     tableRowAdapter.deleteRow(row); 
     tableRowAdapter.notifyDataSetChanged(); 

    } 
+0

그냥 생각이 아니 전체 코드를 게시하시기 바랍니다 수 있습니다. –

관련 문제