How to create a DialogFragment without title?

后端 未结 6 1821
时光说笑
时光说笑 2020-11-29 15:50

I\'m creating a DialogFragment to show some help messages regarding my app. Everything works fine besides one thing: There is a black stripe at the top of the window that sh

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 16:01

    Try easy way

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStyle(STYLE_NO_TITLE, 0);
    }
    

提交回复
热议问题