Showing/hiding dynamically the title bar

by bonfo » Mon, 13 Apr 2009 12:08:21 GMT


Sponsored Links
 Hi,
I already know ho to hide the title bar with the
getWindow().requestFeature(Window.FEATURE_NO_TITLE);
in the Activity onCreate() method before the setContentView() call.

But i want something different. I'd like to show/hide the title bar in
any moment. To make an example, place a button in the view that toggle
the title. Unfortunately the requestFeature can be done only before
the call to setContentView().

How to you think is the best way to achive this? There is a way to
solve this issue?

Thanks

--~--~---------~--~----~------------~-------~--~----~



Showing/hiding dynamically the title bar

by Ralf » Mon, 13 Apr 2009 13:01:08 GMT


 What is your motivation for hiding or showing the title bar at runtime?
Did you consider slicing your app in various activities, which can
have different themes?
R/




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Showing/hiding dynamically the title bar

by Streets Of Boston » Mon, 13 Apr 2009 22:24:23 GMT


 Write your own title-bar.
It's a hassle, but this is a way to do it.

Create a View that looks like a title-bar and put it on top of your
screen. You can hide and show it at any time.



--~--~---------~--~----~------------~-------~--~----~



Showing/hiding dynamically the title bar

by Mattaku Betsujin » Mon, 13 Apr 2009 22:54:18 GMT


 If you want the title most of the time, and only hide it temporarily, you
can use a PopupWindow.

On Mon, Apr 13, 2009 at 7:24 AM, Streets Of Boston





--~--~---------~--~----~------------~-------~--~----~



Showing/hiding dynamically the title bar

by bonfo » Tue, 14 Apr 2009 16:22:39 GMT


 Thanks for the suggestions.
I will look at the best solution.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Problem with ContextMenu in ExpandableList

I need to open a ContextMenu in an ExpandableList only in a
childNode.
In this moment the contextMenu is opening in Root and Child Node.
Do you know how can I make this??

Thanks.
Sergio Fernndez.

--~--~---------~--~----~------------~-------~--~----~

2. Microphone audio capture with emulator is of very poor quality

As a first step toward a speech recognition project, we wrote a simple
voice recording application based on the information in this thread:

3. Dragging markers in MapView

4. disable onscreen keyboard for dialer app

5. Obtaining song metadata information for avrcp

6. what is the picture format for Picture.WriteToStream?

7. "My Location" of google maps cant work when I enable "Use wireless network" and disable "Enable GPS stellites".