[android-developers] Dialog box without title
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
Re: [android-developers] Re: Dialog box without title
I haven't used dialog.setTitle("Title name"); but it still shows a titel with no tex in it ...as in the snapshot in last image. Regards, Archit Jain On Sun, Mar 27, 2011 at 10:33 AM, Dixi wrote: > don't use this while writing your dialog box code--->>> > dialog.setTitle("Title name"); > > > On Mar 27, 12:32 am, Archit Jain 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 > -- 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
Re: [android-developers] Re: Dialog box without title
Thanks Miguel ... it worked :) Regards, Archit Jain On Sun, Mar 27, 2011 at 10:46 AM, Miguel Morales wrote: > Use: requestWindowFeature(Window.FEATURE_NO_TITLE); > > On Sat, Mar 26, 2011 at 10:03 PM, Dixi wrote: > >> don't use this while writing your dialog box code--->>> >> dialog.setTitle("Title name"); >> >> >> On Mar 27, 12:32 am, Archit Jain 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 >> > > > > -- > ~ Jeremiah:9:23-24 > Android 2D MMORPG: http://solrpg.com/ > http://www.youtube.com/user/revoltingx > > -- > 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 > -- 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