for example to swap the positions of 2 and 3 view, i thought first to swap the 2 data : panx(i), pany(i)
and next remove and re create the 2 views with something like :
DraggableView just adds a transparent panel above the view. You need to add the view with SetLayoutAnimated and then do the same to the DraggableView panel (make it public).
sorry the swaping of 2 Draggable Buttons dont works on my side :
so, is there a special place on the forum where i could send my B4A files and request corrections ?
Regards
Take care
Michel
Sub MoveView(Dur As Int, Posx As Int, Posy As Int, wi As Int, he As Int)
innerView.SetLayoutAnimated(Dur, Posx, Posy, wi, he)
panel1.SetLayoutAnimated(Dur, Posx, Posy, wi, he)
End Sub