                     animateDropEffect(v as ViewGroup, event.localState as View)                 }                 DragEvent.ACTION_DRAG_ENDED -> {                  }                 else -> {                 }             }             return true         }          private fun animateDropEffect(into: ViewGroup, view: View) {             into.addView(view)             val params = (view.layoutParams as FrameLayout.LayoutParams)                 .apply {                     gravity = Gravity.END                 }             view.layoutParams = params         }     } }  