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

After reading this article, you can also pick up meteorites in the wild!

Although I have been doing meteorite research, Bu...

I get woken up by sex every night... It’s terrible, what should I do?

In winter, besides the shivering cold, the most a...

10 Top CSS3 Code Generators

New online tools and web applications allow devel...

Is a zebra white with black stripes, or black with white stripes?

This article was reviewed by Zhao Xumao, a young ...

Take a deep breath, this "oxygen" is really good!

Speaking of athletes’ training and recovery, yest...

Can the female anchors who earn millions a year support the future of Momo?

At the end of October, this girl was not too cold...

A quick guide to becoming a KOL on Xiaohongshu!

It has been two months since Xiaohongshu was remo...

We are all bears, why do only giant pandas not need to hibernate?

The giant panda is our national treasure, and it ...