1

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
  • 16,754
  • 34
  • 77
  • 114

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
  • 3,967
  • 1
  • 26
  • 21
1
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
Hans Olsson
  • 53,038
  • 14
  • 91
  • 113
Awais Tariq
  • 7,625
  • 5
  • 29
  • 53
0

I think, FEATURE_NO_TITLE works when creating a dialog,

  Dialog dialog = new Dialog(context);
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
user370305
  • 106,566
  • 23
  • 160
  • 150