开发者

view at same position in absolute layout in android

开发者_运维问答

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜