Android删除布局膨胀

时间:2013-10-09 15:15:31

标签: android android-layout android-view layout-inflater

我这样做是为了在另一个布局上引入布局。

但我不知道如何在需要时删除其中的每一个。

myInflater = LayoutInflater.from(this);
View overView = myInflater.inflate(R.layout.segundacapa, null);
this.addContentView(overView, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));

overView = myInflater.inflate(R.layout.thirdshape, null);
this.addContentView(overView, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));

例如,如果我想删除布局segundacapa我该怎么办?

1 个答案:

答案 0 :(得分:0)

您将设置标记所有布局。当为每个父母的所有孩子移除布局时,除了cotrol其标签。