How to remove the title when launching android app?

前端 未结 12 2196
死守一世寂寞
死守一世寂寞 2021-02-06 10:43

I already remove the title in onCreate() method.

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(         


        
12条回答
  •  感动是毒
    2021-02-06 11:38

    Nick Butcher and Katherine Kuan wrote a nice Google Plus post about a smoother app launch experience:

    https://plus.google.com/+AndroidDevelopers/posts/VVpjo7KDx4H

    However, if you want to be compatible with Android versions below API 14 (for example using AppCompat), the only way I could achieve this is by using a separate launch activity using a theme with no actionbar.

提交回复
热议问题