您好,我写了一个使用拖放选项的应用程序,我正在使用android studio 3和sdk 26,当我到达触摸事件时,我得到了错误消息: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams That代码:
private View.OnTouchListener OnTouchListener() {
return new View.OnTouchListener() {