Android 将imageview从scrollview移动到relativelayout
如何使用拖放(或其他方式)将imageview从ScrollView移动到RelativeLayout? 安卓2.2/2.3.3+ 我需要一个这样的拍摄图像,并顺利移动到相对年轻。。。Android 将imageview从scrollview移动到relativelayout,android,imageview,scrollview,android-relativelayout,Android,Imageview,Scrollview,Android Relativelayout,如何使用拖放(或其他方式)将imageview从ScrollView移动到RelativeLayout? 安卓2.2/2.3.3+ 我需要一个这样的拍摄图像,并顺利移动到相对年轻。。。 对不起,我的英语不太好。我不确定这是否是您想要的,但您可以简单地转到XML(没有带拖放的图形布局),剪切ImagaView代码并将其放置在ScrollView布局之外 请记住,ScrollView只能创建一个对象,这样您就可以在图像周围创建线性布局 由此 <ScrollView andro
对不起,我的英语不太好。我不确定这是否是您想要的,但您可以简单地转到XML(没有带拖放的图形布局),剪切ImagaView代码并将其放置在ScrollView布局之外 请记住,ScrollView只能创建一个对象,这样您就可以在图像周围创建线性布局 由此
<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>
对此
<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>
no。。用户必须这样做。。。这样地: