2012-09-21 3 views
0

에서 행을 제거, 코드가 수행 할 수 있습니다안드로이드 : 다음과 같이 TableLayout을의 행을 추가하는 TableLayout을

private void ToDisplayTagGUI(String Slot, int index) 
     LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); 
     View newTagView = inflater.inflate(R.layout.new_tag_view, null); 
     SlotTableLayout.addView(newTagView, index); 

을 전체 TableLayout을의 데이터를 제거하기 위해,로 될 수있는 코드는 다음과 같습니다

 SlotTableLayout.removeAllViews(); 

내가 어떻게 내가 그냥 TableLayout을의 행 중 하나를 제거 할 경우 그렇게 할 수 있을까?

답변

1

사용할 수있는 TableLayout을에서 특정 행을 제거하려면 :

table.removeView (rowIndex에를);