Source code | Uber's welcome screen

Source code | Uber's welcome screen

Source code introduction: Uber welcome page. Uber's welcome interface Android version Source: https://github.com/KobeGong/UberSplash

Download address: http://download..com/data/2194852

Source code effect:

Source code snippet:

  1. @Override  
  2. protected   void onCreate(Bundle savedInstanceState) {
  3. super .onCreate(savedInstanceState);
  4. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
  5. Window window = getWindow();
  6. window.setFlags(
  7. WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
  8. WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
  9. // window.setFlags(  
  10. // WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,  
  11. // WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);  
  12. }
  13. setContentView(R.layout.activity_main);
  14. getSupportActionBar().hide();
  15.   
  16. findView();
  17.   
  18. initView();
  19.   
  20. File videoFile = getFileStreamPath(VIDEO_NAME);
  21. if (!videoFile.exists()) {
  22. videoFile = copyVideoFile();
  23. }
  24.   
  25. playVideo(videoFile);
  26.   
  27. playAnim();
  28. }

<<:  Source code | Practical calendar control

>>:  Source Code|Cloud Tags

Recommend

How does MissFresh conduct private domain operations?

In the past, when we went to the supermarket to b...

With over 100 million daily active users, what does Kuaishou broadcast live?

Looking back at the end of the year, e-commerce l...

8 tips for selling products through live streaming!

1. Four elements of product marketing In the prod...

Efficient strategy to recall lost APP users!

Before starting today's topic, let's talk...

The underlying idea of ​​planning promotion activities!

In the circle of friends and subscription list of...

Is it the season for rashes again? Don’t worry, take a look at Feng Shui first

My child has a high fever and a rash? Rubella, me...

How much does it cost to develop a mini program in Guangzhou?

In an era when smartphone use has become a daily ...

Dongchedi: Analysis report on car users' purchasing behavior in November 2019

On January 2, the China Automobile Dealers Associ...