可以把你需要的view都加到layout布局中,
然后再用framelayout.addView(layout)方法添加到framelayout里,
清除layout使用removeAllViews()方法。