4

I am trying to reuse one of the activity as a dialog by setting the Theme to Theme.Holo.Light.Dialog. But I am not able to display ActionBar for that dialog. When I try to enable ActionBar by using requestWindowFeature(), it throws an exception "java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout"

I need to have an ActionBar with menu items in the dialog.

4

0 回答 0