2013-04-18 197 views
-1
<LinearLayout 
    android:id="@+id/linear1" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="#FF4D00" 
    android:orientation="vertical" > 

    <Button 
     android:id="@+id/button1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Button" /> 
</LinearLayout> 

<LinearLayout 
    android:id="@+id/linear2" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="#FF4D00" 
    android:orientation="vertical" > 
</LinearLayout> 

我想將@ button1移動到@ linear2,屬性屬於button1不能丟失,包括點擊lisener。那麼,@ linear1將是空的。像切割操作。我能怎麼做?如何將視圖從視圖組移動到另一個視圖組?

回答

相關問題