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. Hello Android

Hello All,

My Simple Hello Android is not working - it is launching the emulator
but and nothing is happening after that - only keeps flashing Android
text on the screen - Can someone advise what i am missing here - I
followed the online tutorial -

Here is the log -

[2009-11-16 15:10:50 - HelloAndroid]------------------------------
[2009-11-16 15:10:51 - HelloAndroid]Android Launch!
[2009-11-16 15:10:51 - HelloAndroid]adb is running normally.
[2009-11-16 15:10:51 - HelloAndroid]Performing
com.example.helloandroid.HelloAndroid activity launch
[2009-11-16 15:10:51 - HelloAndroid]Automatic Target Mode: launching
new emulator with compatible AVD 'my_avd'
[2009-11-16 15:10:51 - HelloAndroid]Launching a new emulator with
Virtual Device 'my_avd'
[2009-11-16 15:11:35 - HelloAndroid]New emulator found: emulator-5554
[2009-11-16 15:11:35 - HelloAndroid]Waiting for HOME
('android.process.acore') to be launched...


I am using - Windows XP machine with Eclipse 3.5 Java EE IDE for Web
Developers.
I have tried with different Virtual Device - but program is stuck at
same state.

Any idea what am i missing here?????

Thank you in advance,

Jagdish

-- 

2. Android dev using the Samsung Galaxy S on OSX

I've searched in various forums and sites but haven't found out
whether it's possible to develop and test apps using the Samsung
Galaxy S on Mac OSX with Eclipse?

Please can you folks share your advice and experiences?

Thanks,
Shiraz Azizali

-- 

3. Parsing response of a WCF webservice under Android?

4. Calculating correct location on a resized background bitmap

5. write with the finger in the screen

6. How to embed youtube video on mobile site to allow android device to see the video

7. About Surface.setMatrix