开发者

Is it possible to move a subview of one view to another view by dragging?

开发者 https://www.devze.com 2023-01-31 00:58 出处:网络
I have a view which I want to move by dragging. This view is in a view 1. I\'d like to move the view to view 2.

I have a view which I want to move by dragging.

This view is in a view 1.

I'd like to move the view to view 2.

Where view 3 has view1 and view2 as subviews.

Is this poss开发者_如何学JAVAible or should I merge view1/view2?

Thanks.


Once you start to detect the move, you could remove the view from view1 and add it to view3. When the move stops, you can remove it from view3 and add it to view2.

0

精彩评论

暂无评论...
验证码 换一张
取 消