Don't use FEATURE_CUSTOM_TITLE. This leads to a brief period at the beginning of your app when the default title bar is visible. Instead use android:theme="@android:style/Theme.NoTitleBar" in your manifest (do not use requestWindowFeature together with FEATURE_NO_TITLE as you will still get a flash of the default title bar at the beginning). Then just insert the layout for your custom title into the layout for your activity.
This is the recommend method for using custom titles. On Jul 27, 11:35 am, Rajesh Pelluru <[email protected]> wrote: > Nope . > Actually I created layout "custom_title_2" for my title bar and I added > below code in my activity class > > requestWindowFeature(Window.*FEATURE_CUSTOM_TITLE*); > > setContentView(R.layout.*custom_title_1*); > > *this*.getWindow().setFeatureInt(Window.*FEATURE_CUSTOM_TITLE*, R.layout.* > custom_title_2*); > > --Rajesh > > 2010/7/27 Tiger <[email protected]> > > > Did you use "android:label="My Title" in the xml ? > > > On 7月27日, 下午5时44分, Rajesh Pelluru <[email protected]> wrote: > > > Hi, > > > I have below requirement : > > > App name is App1. > > > Activity name is Activity1. > > > But I want to display title bar of the Activity1 as "MyTitle" > > > If i try to do that one , App1 appears for few seconds after that > > "MyTitle" > > > is displaying in the title bar. > > > I don't want to display App1 in my title bar.Any one of us can help me to > > do > > > above one. > > > > --Rajesh > > > -- > > 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]<android-developers%[email protected]> > > 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 [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

