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

Why can iPhone only be upgraded and not downgraded?

Why does Apple only allow upgrades but not downgr...

Samsung S8 is priced cautiously to please Chinese users. Do you buy it?

Samsung's new generation flagship smartphone ...

Foreign media exposes FF: As long as Jia Yueting is there, no car can be built

Foreign media Jalopnik published a long article a...

Sony Xperia XZ review: Beautiful design but some stubborn flaws

If we take a look at the impression of Sony mobil...

Trend Li Gongzi Practical Training Camp (Phase II)

Resource introduction of Trend Li Gongzi Practica...

Salmon said: The way home, no matter how difficult it is, is always "fragrant"!

Author: Black Cat Nino The article comes from the...

The other side of information flow advertising: BAT’s data war

Social data, search data, and multi-line product ...

From failure to take-off, how did the Rockets be reborn?

On August 29, 2020, when the United Launch Allian...

Before letting the Earth wander, let’s study this more realistic threat

During the Spring Festival of the Year of Guimao,...

Practical tips: How can APP achieve precise operation?

When it comes to APP operation methods , a simple...

Let’s go and see the Grand Canal!

Open China map We will find the great rivers in e...