Re: [android-developers] this.requestWindowFeature(Window.FEATURE_NO_TITLE); code not work when home key block

2011-11-25 Thread Macoto nalds
call this before Activity.setContentView() .

requestWindowFeature(Window.FEATURE_NO_TITLE);


2011/11/25 Naveen :
> Hello All,
>
> I do not want title bar so coded
> this.requestWindowFeature(Window.FEATURE_NO_TITLE);  but when using
> this below code then this title bar code not works it's showing title
> header .
>
>
>  @Override
>    public void onAttachedToWindow() {
>
> this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
>
>
>        super.onAttachedToWindow();
>    }
>
> But in create i have already coded
>
>  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
>                        WindowManager.LayoutParams.FLAG_FULLSCREEN);
>
> --
> 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


[android-developers] this.requestWindowFeature(Window.FEATURE_NO_TITLE); code not work when home key block

2011-11-25 Thread Naveen
Hello All,

I do not want title bar so coded
this.requestWindowFeature(Window.FEATURE_NO_TITLE);  but when using
this below code then this title bar code not works it's showing title
header .


 @Override
public void onAttachedToWindow() {
 
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);


super.onAttachedToWindow();
}

But in create i have already coded

  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

-- 
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