There are two relativeLayout
- splashRelativeLayout
- playzoneRelativeLayout
I wrote such code that splashRelativeLayout came out as a splash at the beginning of the application download for 5 seconds.
@Override protected void onResume() { super.onResume(); splashRelativeLayout.setVisibility(View.VISIBLE); playzoneRelativeLayout.setVisibility(View.INVISIBLE); new Handler().postDelayed(new Runnable() { @Override public void run() { splashRelativeLayout.setVisibility(View.INVISIBLE); playzoneRelativeLayout.setVisibility(View.VISIBLE); } },5000); } But, before splashRelativeLayout appears on the screen, the program shows a white window - waits for the entire application to load and only then shows splashRelativeLayout.
How to make the application immediately show splashRelativeLayout at first, and then only slowly download all the other layouts.