Showing/hiding dynamically the title bar

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

Sponsored Links
I already know ho to hide the title bar with the
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?



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?


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. Custom Kernel developement for Android Emulator


I like to build my own custom kernel to use with the Android Emulator.
I know how to build my own Android Emulator image and how to set the
kernel that you want use when booting the emulator. But I have no idea
how to build a custom kernel for the emulator and what should be in
there to keep the emulator working.

Does anyone has some starting point for me or some documentation?


2. figure out country in a device without SIM card

Hello Android gurus,

In my game I've got a 'global leaderboard' where people submit their high
scores and check how others are doing. There I display a little flag to show
where a particular player is from.
To figure that out, I use

public String getIso()
        TelephonyManager tM =((TelephonyManager)
        return tM.getSimCountryIso();

That works nicely on any phone; however, recently people started using the
new fad, tablets. Those generally do not have a SIM card, so whenever such
user contacts my server I can see that getSimCountryIso() must have returned
NULL ( or maybe an empty string ) and I am unable to figure out the country.

Any tips?



3. Android Native Code: remote()

4. live wallpaper as background of our application?

5. The purpose of resource name "mipmap"?!

6. Preparing an app for the small screen.

7. Problem with xml inflate