Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Android DialogFragment setStyle()

I'm trying to setStyle to my custom dialog that extends dialogFragment, constructor looks like:

MyCustomDialog() {
  super();
  setStyle(STYLE_NO_FRAME, 0);
}

and I still see the frame around my layout.

Does anyone have any ideas?

like image 437
Hoochwo Avatar asked Jun 22 '11 07:06

Hoochwo


1 Answers

According to the setStyle() description in the DialogFragment documentation:

Calling this after the fragment's Dialog is created will have no effect

like image 185
leo9r Avatar answered Sep 21 '22 22:09

leo9r