android - Move imageview from scrollview to relativelayout -
how move imageview scrollview relativelayout using dragn
drop (or else)? android 2.2/2.3.3+ need ontouch take imageview , smooth move relativelayout... sorry english..
i not sure if want u go xml (no graphical layout drag n drop), cut imagaview code , place outside scrollview layout,
just remember scrollview can father 1 object u can create linearlayout around image
from this
<scrollview android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignparenttop="true" android:layout_above="@id/adview1"> <relativelayout android:id="@+id/relativelayout2" android:layout_width="fill_parent" android:layout_height="352dp" > <imagebutton android:id="@+id/imagebutton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/buttongod" /> </relativelayout> </scrollview>
to this
<scrollview android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignparenttop="true" android:layout_above="@id/adview1" <relativelayout android:id="@+id/relativelayout2" android:layout_width="fill_parent" android:layout_height="352dp" > </relativelayout> <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" <imagebutton android:id="@+id/imagebutton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/buttongod" /> </linearlayout> </scrollview>
Comments
Post a Comment