Displaying logo for few seconds at application start

后端 未结 7 1283
粉色の甜心
粉色の甜心 2021-02-08 07:13

I want to display a logo for few seconds before application starts and menu is visible. I want also to use some when it disappears. Should I create a new activity? Can I set it

7条回答
  •  庸人自扰
    2021-02-08 07:46

    Delayed execution can be implemented in simplier way:

    new Handler().postDelayed(new Runnable() {
      // ... Hide splash image and show the real UI
    }, 3000)
    

    Also the android standard android.widget.ViewSwitcher class is very usable for this kind of things.

提交回复
热议问题