Hey, so I have got a very basic question. On my app I have a lot of different layout files. Everytime the user presses a button on one layout file it loads the next one. In Visual Basic, we call these Forms. So my question is how can I make this easy? Like the user presses a button, it closes the current layout and loads the next one. On VB, the code would be like:
The problem with this code is that it takes a while to load the new activities. And this can be a pain, especially when going through a lot of layouts. Is there anyway to make the loading faster?
To open a new Activity, StartActivity is the way (there also Intents, which are not more fast) and it is not slow.
If loading is slow, the problem may depend on what you load before the Activity is displayed (for example if you are connected to Internet to download something or if the layout to be loaded contains hundreds of views).
Compared to using Activity.RemoveAllViews and Activity.LoadLayout, the loading is much faster. But then I would have to use a single Module for it, which would create a mess in the code.
Hey, so I have got a very basic question. On my app I have a lot of different layout files. Everytime the user presses a button on one layout file it loads the next one. In Visual Basic, we call these Forms. So my question is how can I make this easy