z-order

Android Click Through PopupWindow

那年仲夏 提交于 2019-11-29 18:23:01
问题 I have created a class that extends popupwindow. its constructor looks something like the following super(builder.context.get()); this.setWindowLayoutMode(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); setFocusable(true); setBackgroundDrawable(new BitmapDrawable()); setTouchInterceptor(onTouchListener); FrameLayout frameLayout = new FrameLayout(builder.context.get()); LayoutInflater inflater = (LayoutInflater) builder.context.get().getSystemService( Context.LAYOUT

Absolute z-order (across several DataTemplates)

左心房为你撑大大i 提交于 2019-11-29 18:03:48
Ive a ListBox with a Canvas ItemsPanel that displays 2 different types of objects: NodeVMs and LinkLineVMs (using a CompositeCollection). Each VM object has a DataTemplate: NodeVMs DataTemplate has a TextBlock (A) LinkLineVMs DataTemplate has a Line (B) and a TextBlock (C) How get the following absolute z-order: A (top), C, B (bottom). <ListBox> <ListBox.Resources> <DataTemplate DataType="{x:Type p:NodeVM}"> <StackPanel> <TextBlock ... /> ... </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type p:NetworkLinkVM}"> <Grid> <Line ... /> <TextBlock ... /> </Grid> </DataTemplate> </ListBox

Z-order on Java Swing components

删除回忆录丶 提交于 2019-11-29 13:16:51
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? Amir Afghani You are looking for setComponentZOrder Here's an example . If you want to overlay components over other components, you should use JLayeredPane , which will let you add components to specific layers. This is precisely what's used for things like tooltips and drag-and-drop operations. Here's a tutorial for it as well. Look at the setComponentZOrder

In openGL, how can you get items to draw back to front?

元气小坏坏 提交于 2019-11-29 12:02:07
问题 By default it seems that objects are drawn front to back. I am drawing a 2-D UI object and would like to create it back to front. For example I could create a white square first then create a slightly smaller black square on top of it thus creating a black pane with a white border. This post had some discussion on it and described this order as the "Painter's Algorithm" but ultimately the example they gave simply rendered the objects in reverse order to get the desired effect. I figure back

How to make button non transparent?

夙愿已清 提交于 2019-11-29 11:31:26
问题 I wrote custom View which draws a circle. Then I put it on relative layout. Also I put standard button there, so that they overlap. And I see that button is transparent. How to make it non transparent? 回答1: The standard Holo themed button is partially transparent. You can either create a new button 9.png image to use in the button or create a new button by using drawable. Here's a link on how to do the latter: http://droidapp.co.uk/?p=309 回答2: Set the background to @android:drawable/btn

How to properly use setZOrderMediaOverlay on Android?

萝らか妹 提交于 2019-11-29 09:33:02
问题 Like many others, I am trying to draw 3D objects (using GLSurfaceView) on camera preview (using SurfaceView), along with some buttons placed on top. I actually got a prototype working, but I could not get the onResume working correctly. After a resume, GLSurfaceView stays behind and is not visible anymore. I know that it is working, because I can see the drawing fine if I remove the SurfaceView from the layout. The target is Nexus One, running stock 2.3.3 ROM. Here's the layout xml: <com

Z-Order in JavaFX

允我心安 提交于 2019-11-28 11:57:58
How do I set Z-order for VBox in JavaFX? Z-order in JavaFX is actually the order in the scenegraph, eg. in the content sequence of the scene (then in the contents of the groups, containers, etc.). All nodes have also toFront() and toBack() functions to help changing this order. For finer control, you have to remove nodes from one place and insert it higher or lower in the sequence. With the toFront() and toBack() functions you can indeed influence the z-order, but be aware that this also influences the layout. The HBox and VBox for instance also use the sequence of children to do the layout

How to show form in front in C#

Deadly 提交于 2019-11-27 23:30:18
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 Application.Run(new TheForm ()) instead I (new TheForm()).ShowModal() ... The Form is basically a modal dialogue, with a few check-boxes; a text-box, and OK and Cancel Buttons. The user ticks a checkbox and types in a description (or whatever) then presses OK, the form disappears and the process reads the user-input from the Form, Disposes it, and

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

a 夏天 提交于 2019-11-27 19:35:03
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 bringToBack() in Android. If so, can any one help me in this. Note: that I do not want to control the z-order by the order of placing items in layout I want to control the z-order programmatically. I do not want to hide the views on the front I just want them to be behind the view that is moving. Afaik there's no built-in solution for this. I guess you're

How to bring view on front of everything?

為{幸葍}努か 提交于 2019-11-27 11:51:44
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 the buttons to be always on the front. And when the textview is moving I want to move behind the buttons. I can not achieve this I tried everything I know, and "bringToFront()" definitelly doesn't work. note I do not want to control the z-order by the order of placing element to layout cause I simply can't :), the layout is complex and I can not