我正在寻找在具有图像和向后兼容性的两个 ListView 之间进行拖放的方式。
例:

布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:splitMotionEvents="true">
<TextView
android:layout_width="0dip"
android:layout_height="match_parent"
android:text="list 1"
android:layout_weight="1"
android:textSize="25sp"
android:gravity="center" />
<TextView
android:layout_width="0dip"
android:layout_height="match_parent"
android:text="list 2"
android:layout_weight="1"
android:textSize="25sp"
android:gravity="center" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:splitMotionEvents="true">
<ListView android:id="@+id/list1"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingBottom="0sp"/>
<ListView android:id="@+id/list2"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)