okay, it looks like you can only do this at the application level within the AndroidManifest.xml file. If i put that in the <application> section, it works (and applies to all activities), if I put it in the <activity> section, it does not work. can anyone confirm or deny?
On Aug 26, 10:56 am, sdphil <phil.pellouch...@gmail.com> wrote: > 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 <hack...@android.com> 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 <phil.pellouch...@gmail.com> 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 > > hack...@android.com > > > 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 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 -~----------~----~----~----~------~----~------~--~---