Alternatively just add l1 second: f1. SetLayoutParams(new LayoutParams(LayoutParams. FILL_PARENT, LayoutParams.
FILL_PARENT)); f1. AddView(new BoardView(this)); f1. AddView(l1) and the edit text will be on top Let me know if it works.
Alternatively just add l1 second: f1. SetLayoutParams(new LayoutParams(LayoutParams. FILL_PARENT, LayoutParams.
FILL_PARENT)); f1. AddView(new BoardView(this)); f1. AddView(l1); and the edit text will be on top.
Let me know if it works.
The thing is, it says "l1" cannot be resolved. I want to show l1 ONLY when something happens in the SurfaceView. Basically, when the game ends, I want to show this new View.
I guess I could make the current view invisible, right? – OhMisterRabbit May 8 at 16:13 Ah, so that is the question: show the code where you are making the switch – Femi May 8 at 16:14 Well, the piece of code is rather long, really. I have a custom SurfaceView - there is not enough room to post the code here :/ What should I do to show you?
My class title looks something like this. Public class BoardView extends SurfaceView implements SurfaceHolder. Callback{ – OhMisterRabbit May 8 at 16:19 Is there a problem because it is a custom class?
Surely there must be some way to do this. – OhMisterRabbit May 8 at 16:22 Shouldn't matter. The not resolve issue is just because your custom class doesn't have visibility of the l1 object.
I'd suggest assigning IDs to l1 and then using the id: so do l1. SetId(1); in the onCreate above and then in your custom class use ((View)getParent()). FindViewById(1).bringToFront(); to update the z-order.
– Femi May 8 at 16:27.
I currently have a SurfaceView (named BoardView) that is being stored in a FrameLayout. There is another LinearLayout (l1) that is stored in this FrameLayout(f1) which contains an EditText. I want to be able to bring the EditText to the front from within my BoardView.
Is this possible? I tried using getParent(). BringChildToFront(); but it didn't work.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.