netkomm Active Member Licensed User Longtime User Oct 27, 2014 #1 Hi Erel, During the event Application_Start I am trying to set up the objects that are in the layout I am loading so that they can appear in the correct position on the screen. Example: a splash screen. I placed an Image View on the layout and set the visibility to false. If I use the following code Code: Copy splashScreen.Top = 0 splashScreen.Left = 0 splashScreen.Width = 100%x splashScreen.Height = 100%y splashScreen.Visible = True the only thing that happens is that the visibility is toggled on but all the rest remain unchanged. If I place the same code on the Application_Active event, instead, it works without a problem. Is it supposed to work this way?
Hi Erel, During the event Application_Start I am trying to set up the objects that are in the layout I am loading so that they can appear in the correct position on the screen. Example: a splash screen. I placed an Image View on the layout and set the visibility to false. If I use the following code Code: Copy splashScreen.Top = 0 splashScreen.Left = 0 splashScreen.Width = 100%x splashScreen.Height = 100%y splashScreen.Visible = True the only thing that happens is that the visibility is toggled on but all the rest remain unchanged. If I place the same code on the Application_Active event, instead, it works without a problem. Is it supposed to work this way?
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2014 #2 Make sure to go over this tutorial: http://www.b4x.com/android/forum/threads/layouts-pages-and-viewcontrollers.45942/ I'm not sure that I understand the question. What do you want to happen and what actually happens? Upvote 0
Make sure to go over this tutorial: http://www.b4x.com/android/forum/threads/layouts-pages-and-viewcontrollers.45942/ I'm not sure that I understand the question. What do you want to happen and what actually happens?
netkomm Active Member Licensed User Longtime User Oct 27, 2014 #3 I am trying to show an intro screen using an Image View. The problem is that during the Application_Start event I can only toggle its visibility but not move the object on the screen. I also moved the code in an external Sub but as long as the code is invoked during the Application_Start event I can't seem to be able to resize the picture. Upvote 0
I am trying to show an intro screen using an Image View. The problem is that during the Application_Start event I can only toggle its visibility but not move the object on the screen. I also moved the code in an external Sub but as long as the code is invoked during the Application_Start event I can't seem to be able to resize the picture.
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2014 #4 Please upload your project (File - Export as zip). Upvote 0
netkomm Active Member Licensed User Longtime User Oct 28, 2014 #5 Hi Erel, I solved the issue by changing how the view handles the Resize Event of the view. Thanks. Upvote 0
G GeorgeJHC Member Licensed User Dec 10, 2018 #6 sorry,Could you tell me the code that you used to solve?? Upvote 0