开发者

view at same position in absolute layout in android

开发者 https://www.devze.com 2023-04-06 08:21 出处:网络
开发者_运维问答I have one absolute layout which contains many ImageViews. I have implemented Drog and Drop functions for all imageview. Now what happen when suppose i drag one imageview over another i
开发者_运维问答

I have one absolute layout which contains many ImageViews. I have implemented Drog and Drop functions for all imageview. Now what happen when suppose i drag one imageview over another imageview then first view goes back side because it have been added first compaire to another one . I need that moving view always visible on top.

So can i solve this problem ?

Thanks in advance.


Probably the easiest way to avoid this is to call .bringToFront() on your ImageView when you begin your dragging code.

http://developer.android.com/reference/android/view/View.html#bringToFront%28%29

0

精彩评论

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