Status bar in screen

by Daniel Dreiberg » Thu, 30 Apr 2009 04:26:54 GMT


Sponsored Links
 Hi,
How can I find out the height of the status bar programatically?
Thank you.

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



Status bar in screen

by Dianne Hackborn » Thu, 30 Apr 2009 04:54:35 GMT


 Basically, you don't.  Your content view will be resized for you to account
for it.  Also when you create windows they will be positioned below it,
unless you specify the "layout in screen" flag.

(Now that said, there is this little View.fitSystemWindows() method that
gets called to help the view hierarchy position your content view relative
to screen decorations...  but I would urge against using it, there should be
no need.)

On Wed, Apr 29, 2009 at 1:26 PM, Daniel Dreiberg <





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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


Sponsored Links


Other Threads

1. Widgets and custom components?

Are widgets currently not supporting any type of custom components?
I've tried creating a very simple custom TextView component and it
does not work when displaying the widget...  Also, can we use the
animation classes in widgets?

Thanks,
-Moto
--~--~---------~--~----~------------~-------~--~----~

2. Prevent radio button from being checked when being clicked

Hi!

In my activity I have two radio buttons which both require additional
input. Clicking either button opens a dialog, and only clicking "set"
in that dialog really activates the option. I therefore want to
prevent the radio button from being checked before the value is set,
i.e. I want to prevent it from being automatically checked when the
user clicks it. In my dialog listener I will then manually check the
respective button.

I could just keep the current state of the radio group in a variable
and instantly re-set it whenever a radio button is clicked, but
perhaps there is a more correct way to do this?

Cheers,
Marian.

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

3. WebView onLoadComplete()?

4. Last modification time for each contact record in People table

5. Does starting a query will notify content observer?

6. Problem in Checkbox

7. VOOT Layak kah android sebagai pengganti blackberry?