Questions tagged [z-order]

Z-order is an ordering of overlapping two-dimensional elements in a graphical user interface.

Z-order is an ordering of overlapping two-dimensional elements in a graphical user interface. When two elements overlap, their Z-order determines which one appears on top of the other. Example overlapping elements include windows, dialogs, panels, or 2D/3D shapes.

324 questions
239
votes
13 answers

Defining Z order of views of RelativeLayout in Android

I would like to define the z order of the views of a RelativeLayout in Android. I know one way of doing this is calling bringToFront. Is there are better way of doing this? It would be great if I could define the z order in the layout xml.
hpique
  • 119,096
  • 131
  • 338
  • 476
170
votes
19 answers

How to bring view in front of everything?

I have activity and a lot of widgets on it, some of them have animations and because of the animations some of the widgets are moving (translating) one over another. For example the text view is moving over some buttons . . . Now the thing is I want…
Lukap
  • 31,523
  • 64
  • 157
  • 244
70
votes
13 answers

How to send view to back ? How to control the z-order programmatically?

I have a problem to send the view to back. In Android we have a method like bringToFront(), to place the view on top of the another view. Like that, I want to put the view on below the previous image. Is there any method like sendToBack() or…
Lukap
  • 31,523
  • 64
  • 157
  • 244
41
votes
4 answers

How to set Z-order of a Control using WinForms

I'm writing a custom TextBox that upon gaining focus changes its border style. As adding a border causes the control to overlap with those neighbouring it, I temporarily bring the text box to the front of the dialog (using…
g t
  • 7,287
  • 7
  • 50
  • 85
40
votes
2 answers

drawRect on top of subviews

I have subclassed UIView and added a drawRect method to it. Then I define a view using this custom class and add subviews to it. The problem is that drawRect seem to draw stuff under the subviews (hence not visible). I want stuff that drawRect…
RawMean
  • 8,374
  • 6
  • 55
  • 82
33
votes
5 answers

How to get the z-order in windows?

I'm making an application where I interact with each running application. Right now, I need a way of getting the window's z-order. For instance, if Firefox and notepad are running, I need to know which one is in front. Any ideas? Besides doing this…
user361526
  • 3,333
  • 5
  • 25
  • 36
32
votes
3 answers

How do I let my matplotlib plot go beyond the axes?

I have to translate an image plotting script from matlab to matplotlib/pylab, and I'm trying to achieve the same effect as the matlab image below: As you can see, the z order of the plots seem to be higher than the z order of the grid, so the…
nay
  • 864
  • 2
  • 8
  • 12
25
votes
11 answers

How to show form in front in C#

Folks, Please does anyone know how to show a Form from an otherwise invisible application, and have it get the focus (i.e. appear on top of other windows)? I'm working in C# .NET 3.5. I suspect I've taken "completely the wrong approach"... I do not…
corlettk
  • 13,288
  • 7
  • 38
  • 52
25
votes
6 answers

View bring to front doesnt work

I want to change z order of some views during animation On Androids above 4.1.2 it works just fine, and on androids below 4.1.2 the Z order doesnt change, the top view remains on top. This is what i am trying. …
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
24
votes
1 answer

Layering a contourf plot and surface_plot in matplotlib

I am struggling with layering and zorder in python. I am making a 3D plot using matplotlib with three relevant elements: A surface_plot of a planet, a surface_plot of rings around that planet, and a contourf image that shows the planet's shadow cast…
ahle6481
  • 723
  • 1
  • 6
  • 10
24
votes
5 answers

How do I bring an item to the front in wpf?

I simply have two grid on top of one another. Given one state of the world, I want grid A to be on top, given another state of the world, I want grid B to be on top. In the old days we could just call grid.BringToFront(), but that doesn't exist…
Jonathan Beerhalter
  • 7,229
  • 16
  • 68
  • 78
24
votes
3 answers

Google Maps v2 Marker zOrdering - Set to top

I know there are a few threads around on this topic but i havent yet found a good enough solution. I NEED to place a marker over the top of all other markers. How do i do this? I have tried adding this marker before and after all other markers,…
Aiden Fry
  • 1,672
  • 3
  • 21
  • 45
22
votes
3 answers

Z-Order in JavaFX

How do I set Z-order for VBox in JavaFX?
Scaraffe
  • 5,041
  • 5
  • 21
  • 20
18
votes
3 answers

CALayer Border is appearing above subview (Z-order related, I think)

I have searched but could not find the reason for this behavior. I have a UIButton whose image I am setting. Here is how the button should appear. Note that this is just a photoshop of the intended button design: Essentially, it is a square…
kurisukun
  • 3,149
  • 5
  • 37
  • 69
17
votes
3 answers

Z-order on Java Swing components

I've been looking all over for some mention of this, but I cannot find any substantial information on it. Is there a way to change the z-order of Swing components, or at least change the draw order so that they appear to be above others?
Bevin
  • 952
  • 6
  • 19
  • 35
1
2 3
21 22