How to add title to the custom Dialog?

后端 未结 7 595
猫巷女王i
猫巷女王i 2021-01-12 20:37

How can i add title to this custom dialog??

\"enter

I have tried like this

7条回答
  •  太阳男子
    2021-01-12 21:06

    Please use this line in to hide built-in title from dialog

    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

    and add textView in your layout file.

提交回复
热议问题