0

Possible Duplicate:
Android: How to create a Dialog without a title?

How I can remove the title header from dialog in Android, which is in Gray colour.

Community
  • 1
  • 1
Adil Bhatty
  • 17,190
  • 34
  • 81
  • 118

3 Answers3

6

In case if you aren't extending. dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

In case if you are extending the Class from Dialog:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);

It will help you. Thanks

SALMAN
  • 2,031
  • 1
  • 20
  • 18
1
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
Hans Olsson
  • 54,199
  • 15
  • 94
  • 116
Awais Tariq
  • 7,724
  • 5
  • 31
  • 54
0

I think, FEATURE_NO_TITLE works when creating a dialog,

  Dialog dialog = new Dialog(context);
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
user370305
  • 108,599
  • 23
  • 164
  • 151