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. display data from database in proper order

Hi all,
            In my application I am showing data to the user from
database using SimpleCursorAdapter. But here I am facing problem - It
retrieves and show all data correctly but size of each column is vary
(because if suppose thereare 5 columns and first row has column 2 as
string - "Hall" and second row has column  2 as "My Dining Hall
Number1" then data is not displayed properly, means this column ends
where all columns pf row 1 finished. So what to do? How to assign
fixed size to each column? or there is any way using that I can
display some data in first line and if string is big then other part
is displayed on next line of same column. my xml file is as

<?xml version="1.0" encoding="utf-8"?>

<TableLayout xmlns:android="http://schemas.android.com/apk/res/
android"

    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <TableRow>
                <TextView android:id="@+id/roomName"
                android:gravity="center"
                android:layout_weight="0.5"/>

                <TextView android:id="@+id/switchName"
                android:gravity="center"
                android:layout_weight="0.5"/>

                <TextView android:id="@+id/startDate"
                android:gravity="center"
                android:layout_weight="0.5"/>

                <TextView android:id="@+id/totalTime"
                android:gravity="center"
                android:layout_weight="0.5"/>

                <TextView android:id="@+id/startMin"
                android:gravity="center"
                android:layout_weight="0.5"/>

       </TableRow>
 </TableLayout>

-- 

2. Problem in Browser App

When i try to scroll in webview(say for example YAHOOMAIL inbox page).
There are multiple Focus-Ring is visible around the check box in that
page.
This happen only when i touch the screen and drag it.

Regards
Yogendra.

-- 

3. help: keluar dari FTM Mode gmn? urgent

4. [WTS]Samsung Galaxy S dan Galaxy Tab Case/Screen Guard/Dock Charger+Sync etc

5. Which platform manifest for android-2.6.37-rc7?

6. Custom bootanimation

7. New Android Market Client Update