Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.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 studio上拖放_Android_Android Studio_Drag And Drop - Fatal编程技术网

在android studio上拖放

在android studio上拖放,android,android-studio,drag-and-drop,Android,Android Studio,Drag And Drop,我不熟悉安卓系统。如果有人能编写最基本的代码来实现文本视图在图像视图上的拖放,我将不胜感激。或者更具体地说,将字母拖动到虚线框中,以将字母放置到下拉框中 我在网上找到了很多例子,但都不能正常工作,而且大多数都过时了。我最近通过以下链接完成了这项工作。希望它也能帮助你。 这是在android中拖放视图的简单方法,无需使用任何外部库 Noam,我认为您应该签出xml文件并编辑代码,而不必拖放 试过了。拖放功能在拖放时消失。诺姆希望实时拖放视图。。所以这是行不通的。哦,那你就需要大量的触摸和滑动lis

我不熟悉安卓系统。如果有人能编写最基本的代码来实现文本视图在图像视图上的拖放,我将不胜感激。或者更具体地说,将字母拖动到虚线框中,以将字母放置到下拉框中


我在网上找到了很多例子,但都不能正常工作,而且大多数都过时了。

我最近通过以下链接完成了这项工作。希望它也能帮助你。 这是在android中拖放视图的简单方法,无需使用任何外部库

Noam,我认为您应该签出xml文件并编辑代码,而不必拖放

试过了。拖放功能在拖放时消失。诺姆希望实时拖放视图。。所以这是行不通的。哦,那你就需要大量的触摸和滑动listenersTry,首先,人们会准备好帮助你。如果我们什么都看不到,就没有动力去帮助。先试试看
Noam, I think you should just check out the xml file and edit the code without draging and dropping

<ImageView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:src="@drawable/image">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@String/textOnImage">

</ImageView>