0

画面上の必要な場所にドラッグできるビューを表示する必要があります。このビューは、他のビューの上にオーバーレイとしてドラッグできます。これを実現する方法。私のレイアウトは次のようになります。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

<ImageView 
    android:id="@+id/image1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
 />
<ImageView 
    android:id="@+id/image2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
/>

<org.example.MyCustomDrabaleView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
 />

実際、開発者が MyCustomDrabaleView ビューを使用してビューの上にドラッグできるサンプル ライブラリ プロジェクトを構築しようとしています。新しい位置。

4

0 に答える 0