Increasing the size of status bar

3,789 views
Skip to first unread message

vishal bhoj

unread,
Nov 9, 2009, 9:36:16 AM11/9/09
to android...@googlegroups.com
Hello Everyone,


I am trying to customize the status bar for a device with a large
screen.I want to increase the height of the status bar.I have made the
necessary changes in the status_bar.xml The changes happen in the
framework-res.apk. the status bar size is increased but the application
area overlaps on it and nothing more than 25 dip(in hieght )is being
displayed.



I am trying to dig into the source where I could customize the activity
area. I am unable to find it.Can anyone please guide me where this
region is bieng allocated.


Thanks and regards,


Vishal
homescreen.png

Dianne Hackborn

unread,
Nov 9, 2009, 4:30:18 PM11/9/09
to android...@googlegroups.com
The system dynamically adjusts the application content area based on the status bar window's size.  I would guess that you have changed the size of the content of the status bar, but not the status bar itself.  (Another hint for this: the status bar window is on top of the application, so the fact that its content is cut off indicates the window is not large enough.)

Make sure you also change status_bar_height in dimens.xml:

    <!-- Height of the status bar -->
    <dimen name="status_bar_height">25dip</dimen>




--
Dianne Hackborn
Android framework engineer
hac...@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.

vishal bhoj

unread,
Nov 10, 2009, 12:05:27 AM11/10/09
to android...@googlegroups.com
Thank you Dianne,


That was the problem. Now the status bar is appearing properly.
with regards vishal

Jitesh dedhiya

unread,
Aug 28, 2013, 8:49:42 AM8/28/13
to android...@googlegroups.com
Hi,

I tried changing the height of status bar via dimen.xml but not in the core/res/res/values/dimen.xml but i had different dpi device so i added core/res/res/values-sw412dp/dimen.xml and added only this param <dimen name="status_bar_height">40dip</dimen>. It does reflects the change but  other apps title related UI gets hidden beneath statusbar. Any one knows what am i doing wrong ?

On Tuesday, April 2, 2013 12:37:52 PM UTC+5:30, Ravindra Gupta wrote:
hi vishal
        can u please post ur changes here, because i am facing the same problem.
thanks
ravindra gupta
Reply all
Reply to author
Forward
0 new messages