Sub Globals
Dim DD As DragDropView
Private PanelBase As Panel
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
Private Label4 As Label
Private Label5 As Label
Private Label6 As Label
Private Place1 As Label
Private Place2 As Label
Private Place3 As Label
Private Place4 As Label
Private Place5 As Label
Private Place6 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
DD.Initialize(Me,"DD")
DD.AddDragView(Label1,False).AddDragView(Label2,False).AddDragView(Label3,False).AddDragView(Label4,False).AddDragView(Label5,False).AddDragView(Label6,False)
DD.AddPlaceView(Place1).AddPlaceView(Place2).AddPlaceView(Place3).AddPlaceView(Place4).AddPlaceView(Place5).AddPlaceView(Place6)
End Sub
Sub DD_Placed(DragView As View, PlaceView As View)
Log(DragView.Tag & " - " & PlaceView.Tag)
End Sub