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();
我怎麼能這樣做,如果我只是想從桌面佈局中刪除一行?