[Q] When making status bar icons, can I stretch the image out?

chaotix000

Senior Member
Jul 23, 2012
75
3
0
Can I stretch the, say, battery icon out to be longer like if I wanted to make a battery bar(health bar)? Or does it have to be a square image?
 

dyetheskin

Senior Member
Dec 12, 2006
2,033
228
0
bensalem, pa
they're square for a reason. can't simply stretch them. it's coded so they can be read correctly to be displayed. image dimensions are based upon the device such as mdpi,hdpi and so forth
 

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
you can / cant do it. if you are going to make the img longer then you will need to edit the xml so it will allow the space. most of the status bar is defined by an xml for the locate, kinda like if you delete the png for gms and instead of reclaiming the space it will leave a blank spot.