Thanks for the reply.  Your suggestion removes the title bar (which my
solution also did), but when the onLayout method of my ViewGroup is
called, it still tells me that the 'top' is 25 instead of 0 which it
should be when there is not title bar.


On May 22, 10:17 pm, pawan nimje <pawanni...@gmail.com> wrote:
> <activity android:name=".MyMainClass"
>             android:label="@string/app_name"
>             android:theme="@android:style/Theme.NoTitleBar">
>
> hope this is what you meant.
>
>
>
> On Sun, May 23, 2010 at 9:33 AM, John Gaby <jg...@gabysoft.com> wrote:
> > When my application starts, I call:
>
> > this.requestWindowFeature(Window.FEATURE_NO_TITLE);
>
> > to get rid of the title bar.  I then create a custom ViewGroup and
> > when set that view to be the content view via a call to
> > 'setContentView', the 'onLayout' method of my ViewGroup is called.
> > However, the top position is set to 25, even though I have turned off
> > the title.  How can I set my ViewGroup to take up all of the space,
> > including the space formally occupied by the title bar?
>
> > Thanks.
>
> > --
> > 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<android-developers%2bunsubscr...@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 
> athttp://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

Reply via email to