[英]Move imageview from scrollview to relativelayout
How to move imageview from ScrollView to RelativeLayout using drag n
drop (or else)? 如何从滚动型移动imageview的使用拖放到RelativeLayout的n
降(或其他)? Android 2.2/2.3.3+ I Need OnTouch take imageview and smooth move to relativeLayout... Sorry for my English.. Android 2.2 / 2.3.3 +,我需要OnTouch拍摄imageview并顺利移动到relativeLayout ...对不起,我的英语。
I not sure if it is this you want but u could simply go to XML (no graphical layout with drag n drop), cut the ImagaView code and place it outside the ScrollView layout, 我不确定是否要这样做,但是您可以简单地转到XML(无图形布局,拖动n拖放),剪切ImagaView代码并将其放置在ScrollView布局之外,
Just remember ScrollView can father only one object so u can create a LinearLayout around your image 请记住,ScrollView只能继承一个对象,因此您可以在图像周围创建LinearLayout
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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.