Did you use android:label=My Title in the xml ?
On 7月27日, 下午5时44分, Rajesh Pelluru mail2pell...@gmail.com 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
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.*
2010/7/27 Rajesh Pelluru mail2pell...@gmail.com:
Nope .
Actually I created layout custom_title_2 for my title bar and I added
below code in my activity class
If you want just set a string as activity's title then setTitle() method
is all you need.
--
You received this message because you are
Actually I want to change layout title bar and it contains few images also
On Tue, Jul 27, 2010 at 4:11 PM, Webnet Android webnet.andr...@gmail.comwrote:
2010/7/27 Rajesh Pelluru mail2pell...@gmail.com:
Nope .
Actually I created layout custom_title_2 for my title bar and I added
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
5 matches
Mail list logo