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

Japanese smart TVs are criticized: buying a large display at a high price

With excellent user interface and massive content ...

Reuters: China to set communication standards for driverless cars

China will lay the foundation for vehicle-to-vehi...

Where can I buy the Black Blessing video?

Video production of African children holding sign...

5 ways to earn money by playing short videos without appearing on camera

In fact, many people have been asking how to make...

I was fine, so how come I got chronic pharyngitis?

Eating spicy hot pot in the cold winter is perfec...

HTML5 game performance is greatly improved, Egret Engine 1.5 is released

Recently, Egret Times released the latest generat...

How does QQ construct its membership activity operation platform?

QQ Member Activity Operation Platform (AMS) is on...

Programmatic Advertising Quantitative Evaluation Revenue Indicator - eCPM

This article will share with you how to improve &...