doh. okay, so I added that to my AndroidManifest.xml file --
<activity android:name=".myActivity" style="@style/myStyle"/>
and it still doesn't work.
style is in file == values/styles.xml ==
-phil
On Aug 26, 9:44 am, Dianne Hackborn <[email protected]> wrote:
> Er... the window title is not associated with a linear layout. That is
> associated with the activity (ideally set with android:theme in the
> manifest).
>
>
>
> On Wed, Aug 26, 2009 at 8:13 AM, sdphil <[email protected]> wrote:
>
> > yes, I know how to do it in the java code (requestWindowFeature
> > (Window.FEATURE_NO_TITLE)) -- but I would like to create a style that
> > does that.
>
> > <style name="myStyle">
> > <item name="android:windowNoTitle">true</item>
> > <item name="android:background">@drawable/myBackground</item>
> > <item name="android:layout_width">fill_parent</item>
> > <item name="android:layout_height">fill_parent</item>
> > <item name="android:orientation">vertical</item>
> > </style>
>
> > Then I would expect to be able to do this in my layout xml file --
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> > android" style="@style/myStyle">
> > ...
> > ...
> > ...
> > </LinearLayout>
>
> > I get the background and the vertical orientation and the layout width/
> > height, but I still get a title!
>
> > tia.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---