Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 将imageview从scrollview移动到relativelayout_Android_Imageview_Scrollview_Android Relativelayout - Fatal编程技术网

Android 将imageview从scrollview移动到relativelayout

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

如何使用拖放(或其他方式)将imageview从ScrollView移动到RelativeLayout? 安卓2.2/2.3.3+ 我需要一个这样的拍摄图像,并顺利移动到相对年轻。。。
对不起,我的英语不太好。

我不确定这是否是您想要的,但您可以简单地转到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。。用户必须这样做。。。这样地: