Pri*_*alj 1 layout android hide android-linearlayout
我想要做的是在按下按钮时在"2"(第二个LinearLayout)的顶部显示"框架"(或新布局).我该怎么办?如果没有按下按钮,预先创建并隐藏它?
我有这种类型的布局:

XML:
<LinearLayout>
    <LinearLayout>
    </LinearLayout>
    <LinearLayout>
        //here would be another view, only shown when a button is clicked
        <ViewFlipper>
        </ViewFlipper>
    </LinearLayout>
    <RelativeLayout      
    </RelativeLayout>
</LinearLayout>