try style id. in style.xml: <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog"> <item name="android:windowBackground">@color/transparent</item> <item name="android:windowIsFloating">false</item> <item name="android:windowNoTitle">true</item> </style> new a dialog by new Dialog(context, R.style.CustomDialogTheme);
On Mar 27, 3:32 am, Archit Jain <dce.arc...@gmail.com> wrote: > Hi all, > > Is there a way, I can remove title from the default dialog box ? > > I am using following code : > > Dialog alertDialog = new Dialog(getApplicationContext()); > alertDialog.setContentView(R.layout.info); > alertDialog.setCancelable(true); > alertDialog.show(); > > But it shows a titlebar with no text in it. How can I avoid that? > > Regards, > Archit -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en