[android-developers] Re: Dialog box without title

2011-03-28 Thread 爵溪
try style id. in style.xml: @color/transparent false true new a dialog by new Dialog(context, R.style.CustomD

[android-developers] Re: Dialog box without title

2011-03-27 Thread Doug
On Mar 27, 8:05 am, TreKing wrote: > On Sun, Mar 27, 2011 at 2:25 AM, Doug wrote: > > It's not pointless, and please stop telling people that.  :-) > > > You just have to know when to use it.  Use it when you need to store > > a context in an object that lives longer than an instance of an activi

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 10:16 AM, Kostya Vasilyev wrote: > 27.03.2011 19:05, TreKing пишет: > > Do you have a good example of when storing a Context like this is a good >> idea? I'm just curious. >> > > I do. Singletons. > > Or, to use a more simple name, "manager" or "utility" classes that provi

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread Kostya Vasilyev
27.03.2011 19:05, TreKing пишет: Do you have a good example of when storing a Context like this is a good idea? I'm just curious. I do. Singletons. Or, to use a more simple name, "manager" or "utility" classes that provide reusable functionality, which needs to be available to more than one

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 2:25 AM, Doug wrote: > It's not pointless, and please stop telling people that. :-) > > You just have to know when to use it. Use it when you need to store > a context in an object that lives longer than an instance of an activity or > service, but don't want to leak tha

[android-developers] Re: Dialog box without title

2011-03-27 Thread Doug
On Mar 26, 1:24 pm, TreKing wrote: > On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain wrote: > > Dialog alertDialog = new Dialog(getApplicationContext()); > > Never use getApplicationContext() - it's pointless and doesn't work for > Dialogs. I'm surprised you're seeing anything. It's not pointless,

[android-developers] Re: Dialog box without title

2011-03-26 Thread Dixi
use this, this will definitely remove the TITLE from dialog box dialog.requestWindowFeature(dialog.getWindow().FEATURE_NO_TITLE); -- Regards Dixit Wadhwani 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 follo

Re: [android-developers] Re: Dialog box without title

2011-03-26 Thread Archit Jain
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--->>> >> dia

Re: [android-developers] Re: Dialog box without title

2011-03-26 Thread Miguel Morales
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

Re: [android-developers] Re: Dialog box without title

2011-03-26 Thread Archit Jain
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 na

[android-developers] Re: Dialog box without title

2011-03-26 Thread Dixi
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(getApplica

[android-developers] Re: Dialog box without title

2011-03-26 Thread lbendlin
setCancelable(false); specify your own positive and negative button callbacks. -- 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 e

[android-developers] Re: Dialog box

2008-12-31 Thread AlexG
anyone? still looking for an idea how to do this... On 30 דצמבר, 17:17, AlexG wrote: > Hi > > I am trying to implement something like: > > userResponse = showMessageBox(buttons, messages, etc) > > So far I have started a new activity that presents themessageand the > button and returns through o