Android Question In Android 6 loadlayout leaves previous buttons behind

DickD

Active Member
Licensed User
I'm testing my app on various platforms and have discovered that in Android 6.0.1 loading a new layout (created in visual designer) in the same module leaves the buttons from the previous layout on the screen. Other things like labels disappear but not buttons. I have tried setting those buttons to .enabled = false and .visible = false but they do not disappear and remain functional.

How do I get rid of them?
 

Star-Dust

Expert
Licensed User
Longtime User
Have you tried to set up elevation?
 
Upvote 0

DickD

Active Member
Licensed User
You have to add those buttons to a panel, that will do it.
That worked to hide the buttons but not disable them. If you touched the area on the screen where the button used to be it would execute. I added .enabled = false in code to finally stop the button from functioning. Why only in A6.0???
 
Upvote 0
Top