Thursday, April 18, 2013

[android help] how to move a view from viewgroup into another viewgroup?

android - how to move a view from viewgroup into another viewgroup? - Stack Overflow








Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.


















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

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


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



I wanna move the @button1 into @linear2, and the attributes belong button1 can't lost, include click lisener. then, the @linear1 is gonna be empty. like cut operation. How can I do?
















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default







.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...