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

From 0 to 1: Basic knowledge of mobile Internet advertising

I have been in charge of advertising since the en...

SMMT: UK new car registrations fell by about 25% year-on-year in October 2021

Preliminary data released by the Society of Motor...

Keep product experience report, tell you the secret of user growth

1. Experience the environment Test model: iPhone6...

12 Fanstong case studies to unlock creative information flow routines!

In recent years, traditional home furnishing and ...

What skills does an excellent operation dog need to have?

I haven't written an article for a long time....

25 tips for Tik Tok operation and promotion!

As an Internet person who has been engaged in con...

From 4P to 5A, how to promote automobile marketing?

Nowadays, no matter what industry you are in, you...

With a range of over 450km, Qoros 3 EV may be launched in November

Recently, Qoros Auto's senior management anno...

Cook responded indirectly to Xiaomi's rise: Apple is not worried

[[127868]] According to the US technology website...

How to edit video tutorials on Tik Tok? (7 tips for shooting videos)

With the rapid development of Douyin 's inter...

IQIYI account traffic marketing skills!

one iQiyi currently ranks first in the industry i...