Android Question Panels and Layouts oh my

Stichler

Active Member
Licensed User
Hello,

Ok I want to have a splash screen, followed by a main screen, followed by screens dictated by what the user presses. I can use panels but this gets messy. Is there a simple way to have the splash screen as its own layout, and then each screen i need as its own layout? If so how do i transition between them?
 

Mahares

Expert
Licensed User
Longtime User
simple way to have the splash screen as its own layout, and then each screen i need as its own layout? If so how do i transition between them?
There is a complete project you can play with in post#1 or another one in post#3 in the below link:
https://www.b4x.com/android/forum/threads/sample-splash-screen.71517/#content
The Splash layout is loaded onto the main activity for a short period of time, then all main activity views are removed and a new layout is loaded onto the same main activity. You can create a second additional activity (SecondActivity) and load a new layout onto it with all the second activity views based on what the user wants to do. To navigate to the second activity, use; StartActivity(SecondActivity) from within the main activity. The main activity will then be automatically paused. To finish working with the second activity, issue this inside the second activity: Activity.Finish
 
Upvote 0
Top