我这样做是为了在另一个布局上引入布局。
但我不知道如何在需要时将它们一一删除。
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,我应该怎么做?
发布于 2013-10-09 23:21:45
将设置tag all layout。当移除布局时,为每个父级的所有子级创建,然后控制其标记。
https://stackoverflow.com/questions/19275999
复制相似问题