0
如何將imageview從ScrollView移動到RelativeLayout使用拖動n
drop(或其他)? 的Android 2.2/2.3.3 + 我需要OnTouch採取imageview的順暢移動到RelativeLayout的... 對不起,我的英語..將imageview從scrollview移動到relativelayout
如何將imageview從ScrollView移動到RelativeLayout使用拖動n
drop(或其他)? 的Android 2.2/2.3.3 + 我需要OnTouch採取imageview的順暢移動到RelativeLayout的... 對不起,我的英語..將imageview從scrollview移動到relativelayout
我不知道這是否是這就是你想要但你可以簡單地去XML(與拖n個墨滴沒有圖形佈局),切ImagaView代碼並將其放置在滾動型佈局之外,
只記得滾動型可父親只有一個對象,這樣你們可以在你的圖像從本
創建的LinearLayout
<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>
沒有。用戶必須這樣做......是這樣的:http://s019.radikal.ru/i601/1203/d0/27823f090029.jpg – user868395 2012-03-10 23:40:17