no title bar

by Jags » Thu, 26 Nov 2009 00:16:40 GMT

Sponsored Links
 I dont want title bar in my application, how to remove that ? in my
activity ?



no title bar

by Matthias » Thu, 26 Nov 2009 00:20:20 GMT

 call requestWindowFeature(Window.FEATURE_NO_TITLE) before calling
setContentView() OR set it as part of a style definition


Sponsored Links

no title bar

by Dianne Hackborn » Thu, 26 Nov 2009 01:42:36 GMT

 Or, best, set your activity to one of the no title themes, like


no title bar

by Jags » Thu, 26 Nov 2009 14:31:42 GMT

 Theme.NoTitleBar is predefined ? which tag it should be embedded
with ?

android:windownoTitle="true" which tag it should be associated with ?
Activity and Application refuse to take it !

> >

no title bar

by Dianne Hackborn » Thu, 26 Nov 2009 14:36:41 GMT

 <activity ...
    android:theme="@android:style/Theme.NoTitleBar" />

> > >

no title bar

by Jags » Fri, 27 Nov 2009 17:55:33 GMT

 thanks. actually i am in a typical situation where i need to hide
title bar for a screen, and show for another screen [i mean xml
layout] in the same activity. Is it possible programmatically doing
it ?

another thing is, when titlebar is sown, can i show the title text at
the center ?


> > >

no title bar

by Ian Guedes Maia » Fri, 27 Nov 2009 20:39:13 GMT

 > another thing is, when titlebar is sown, can i show the title text at

Extending the default theme and overriding WindowTitle's
android:gravity doesn't work -- there's an issue about that: 
One workaround is to replace the title using
setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title). The
custom_title with gravity=center works.


Other Threads

1. Miring DreamWTB dream second

karena banyak juga yang make Google Dream G1 HTC *halah :P 

usul Sabtu gimana ?

GI ?  EX ? Sency ? PS ? ---> yg ada free Wifi lumayan

Jus* owner of white dream eclair 2.1
~ send using pc jangkrik krik krik ~

"Indonesian Android Community [id-android]"

2. how to wrap content in optionsmenu?


my problem is, that i have long strings in my optionsmenu. so my
question is, whether is it possible to define, that i only want to
show one item per line:


or is it possible to wrap the content like

i dont know, how android create such menus. i actually have 5 items in
my menu:

menu.add(Menu.NONE, 0, 1, R.string.mode);
menu.add(Menu.NONE, 1, 0, R.string.delete);     //long string
menu.add(Menu.NONE, 2, 2, R.string.deletegef);//long string
menu.add(Menu.NONE, 3, 3,;
menu.add(Menu.NONE, 4, 4, R.string.quit);

the second and the third menu items are too long. so i decide to show
the second menu entry at the top of the menu, but the third entry is
still too long:

SHORT          | SHORT

so how could i solve this problem? I try to define a long string with
a \n character, but this does not work

Thanks, Stefan


3. multiple parameters with rawQuery in sqlite = BUG

4. How do I simulate the Home key programmatically?

5. How to launch YouTube with specified keywords?

6. Spinner not displaying the selectedItem

7. Can static library is created by android 2.0 work at android 2.1?