https://lh3.googleusercontent.com/--x2TKiZoJRo/VHjDxFnuY9I/AJw/tHS9FxRSi0c/s1600/titlebarbg.png
Forgot the image
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I use in onCreate():
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
super.onCreate(savedInstanceState);
setContentView(getContentView());
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
R.layout.title_bar_1);
And then I have an XML
Well, the problem with this approach is that it is not FOOL PROOF. I dont
think it's mentioned anywhere in the Docs that the title bar would always
contain a texview with this id.
So, the best bet I would suggest is go for a theme with no default title,
and add a custom view which looks like a
That should work so you are saying there is no way for me to use
android:label from the manifest...correct?
On Oct 12, 1:09 pm, Kumar Bibek coomar@gmail.com wrote:
Well, the problem with this approach is that it is not FOOL PROOF. I dont
think it's mentioned anywhere in the Docs that the
Yes, you cannot do that without having to pick up the value from the
manifest and setting it to the title. Once you mention that you are using a
custom title, the default things don't work. It thinks that you will set a
custom title yourself, so it doesn't do it.
On Wed, Oct 13, 2010 at 1:54 AM,
Sounds good then! One more question, it seems that if there first time
I launch the app the default title shows up for a bit and then it gets
replaced by mine. I know because I can see the title of my app and
then it gets disappeared (via a fade animation).
Now this does not occur on any
Yes, this is the problem if you are setting it like this. You cannot avoid
that.
On Wed, Oct 13, 2010 at 2:12 AM, Dimitris dnkou...@gmail.com wrote:
Sounds good then! One more question, it seems that if there first time
I launch the app the default title shows up for a bit and then it gets
I also managed to use the android:label just by accessing ActivityInfo
programatically, I just want to guarantee no resources are wasted and
no additional layouts are inflated for no need.
On Oct 12, 1:27 pm, Kumar Bibek coomar@gmail.com wrote:
Yes, you cannot do that without having to pick
Hi,
Thanks for your fast response.
I am just a bit confused by what you said.
Suppose I have a Class A that has my button logic, then according to
what I understood I need to
1. Create a subclass of A such as Class B extends A
2. Other activities subclass B such as Class C extends B
If
Hi,
One more thing then when I need to display this subclasses, will they
be displayed as we normally display one activity from another activity
i.e. startActivity(intentObj).
Please reply if anyone knows the solutions.
Thanks regards
Sunil
--
You received this message because you are
Hi,
I have been able to extend the class and get the button click event in
the same Activity.
But now there is another issue. I want to display images in Gallery
from that button click but its not happening so if I click on that
button from another activity. The onclick method is being called
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 ?
regards
another thing is, when titlebar is sown, can i show the title text at
the center ?
Extending the default theme and overriding WindowTitle's
android:gravity doesn't work -- there's an issue about that:
http://code.google.com/p/android/issues/detail?id=4395
One workaround is to replace the title
call requestWindowFeature(Window.FEATURE_NO_TITLE) before calling
setContentView() OR set it as part of a style definition
(android:windowNoTitle=true).
On Nov 25, 5:16 pm, Jags jag...@gmail.com wrote:
I dont want title bar in my application, how to remove that ? in my
activity ?
Jagat
--
Or, best, set your activity to one of the no title themes, like
Theme.NoTitleBar.
On Wed, Nov 25, 2009 at 8:20 AM, Matthias m.kaepp...@googlemail.com wrote:
call requestWindowFeature(Window.FEATURE_NO_TITLE) before calling
setContentView() OR set it as part of a style definition
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 !
On Nov 25, 11:42 pm, Dianne Hackborn hack...@android.com wrote:
Or, best, set your activity to one of the no
activity ...
android:theme=@android:style/Theme.NoTitleBar /
On Wed, Nov 25, 2009 at 10:31 PM, Jags jag...@gmail.com wrote:
Theme.NoTitleBar is predefined ? which tag it should be embedded
with ?
android:windownoTitle=true which tag it should be associated with ?
Activity and
Implement your own custom title bar. You will need to make this taller than
the regular title bar anyway for a decent user experience (especially if you
want DOUBLE tap...), so just bit the bullet and do your own thing.
2009/4/22 UJ ujhu...@gmail.com
Dear Dianne,
Generally speaking, I
Dear Dianne,
Generally speaking, I agree your opinion.
But, there are some speical cases, such as:
If I want to implement double tap address bar on browser to enter
web address as iPhone,
I must let the address bar can listen the click event.
Unfortunately the address bar seems be implemented
This probably isn't going to be too useful -- the title bar takes advantage
of not being touchable by making itself less tall. Trying to touch that
title bar, with the active status bar already right above it, would be not
too easy. So if you do want to have a touchable title bar, you probably
Hi Dianne
Thanks for your comment.
But is there any possible way to hack current title bar to try it ?
(Ignoring the title bar height issue)
Thanks again.
Regards
Milton
On 4月20日, 下午4時19分, Dianne Hackborn hack...@android.com wrote:
This probably isn't going to be too useful -- the title bar
You can put an on click listener on a text view (this is a basic feature of
view), but please don't go digging through the view hierarchy for the title
bar text view; this is an implementation detail of the window decorations.
If you want a special title bar, I would recommend just doing your own
Hi Joe, Dianne
Appreciate all your suggestions.
I had tried to put a textview and add an onclicklistener to it.
It works fine, but I still think it's better that I could use the
title bar.
To trigger the action from menu is ok too, but user have to do two
actions to achieve one result.
As I said, the title bar is short to save space on the screen, and with it
right up against the status bar and being short like that it is just a
really crummy hit target. This isn't really worthwhile to do on a touch
display, in my opinion.
2009/4/20 milton min.hsiung.hu...@gmail.com
Hi Joe,
24 matches
Mail list logo