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

"Jingxi" product analysis report!

As a social e-commerce platform that was launched...

Nissan Leaf's autopilot turned off during demonstration, posing safety issues

Last week in Yokohama, near Tokyo, Nissan Motor C...

Practice: Full process analysis to improve APP Push conversion rate

Recently, we are working on optimizing the succes...

Why do all mobile phones, not just iPhones, prefer one-piece bodies?

If you pay attention to the new phones released in...

The CPU is not enough? Why do Android flagships get so hot when playing games?

The heating of mobile phones is definitely a heada...

Typhoon Siam is approaching! It will make landfall today

Typhoon Siam, the third typhoon this year, is app...

Smart + short video, mobile marketing enters the second half

01. Traffic concentration and marketing efforts T...

From environment setup to memory analysis: A guide to Python code optimization

Code address: https://github.com/apatrascu/huntin...

How to advertise on Weibo? What are the methods of Weibo promotion?

Weibo is one of the most popular and active socia...