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

Healthy eating tips for families: Eat to stay healthy and improve immunity

Do you have a low immune system and the flu virus...

Practical case: How to build a user churn warning system!

Instead of waiting for users to churn and then us...

Click, click! Scientists decode sperm whales' mysterious phonetic alphabet

Produced by: Science Popularization China Author:...

Liu Zhiqiang, the top influencer on Douyin, has gained a lot of fans

We found on the short video platform that there a...

A comprehensive review of China's mobile internet advertising in 2019

The most important turning point is that with the...

Dyeing the lake pink! It’s for science…丨Environmental Trumpet

Hello everyone, this is the 18th issue of the Env...

Foreign trade tips | SNS marketing methods

Although social media tools vary and marketing me...

Using OpenSSL to convert private keys and certificates

[[171102]] Recently, I need to use APNs push in i...

I want to rub it! It is the prototype of Pikachu and the leader in cuteness

In the real world, there is a kind of cute animal...