Android Question Problem loading new layout

Konradsson

New Member
Licensed User
Longtime User
Hello, I have a small problem. When I start my application, I load "Layout1" to the activity. Then, after clicking a button, I load "Layout2". The problem is that both layouts are visible. The new layout is "transparent" on top of the old one. How do I fix this?
 

klaus

Expert
Licensed User
Longtime User
That's how Android works !
To avoid this you have several possibilities depending on what exactly you want to do.
You might have a look at Different examples with 2 layouts.
You should also have a look at chapter 13.2 Program with 3 Activities (ThreeActivityExample.b4a) in the Beginner's Guide !
 
Upvote 0
Top