How do the battery icons work?

Discussion in 'Team D1-MIUI' started by chaoslimits, Nov 6, 2010.

  1. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Can someone explain how the MIUI battery icons work? I only see 2 icons in the decompiled framework-res.apk.

    Does the /drawable/battery_status.xml file control it?

    Thanks
     
  2. thebignoob

    thebignoob Member

    Joined:
    Dec 25, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Magnets, now how do those work.

    Where are you looking for the battery icons?

    Look for editble files under "stat_sys_battery_*.png"

    The wildcard, *, was included because there is about 8 files to edit.
    It's in under "res/drawable-hdpi-v4/" folder.

    Hope this helps.
     
  3. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    9 but 6 of them are charging pngs.
    It's obvious that the battery percentages are generated somewhere else. I wanted to know where. Sorry if I wasn't clear enough.
     
  4. ZeroBarrier

    ZeroBarrier Guest

    Ratings:
    +0
    You can not change the battery icon in MIUI. It's drawn in and not just a .png.
     
  5. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Thanks for answering. I know they are not pngs. I'm trying to find out what xml controls it. Thanks
     
  6. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    No takers?

    I'm trying to implement this on my DX and would appreciate any help. Thanks
     
  7. illmatic636

    illmatic636 Active Member

    Joined:
    Jan 4, 2010
    Messages:
    1,420
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    NYC
    Ratings:
    +2

    It's not on your device yet. Only Nexus, Desire and Droid1 from what I believe. If your looking to port you want to hit up Zenulator or Metickone by PM.
     
  8. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Thanks for your reply. I know MIUI is not on DX.
    I'm trying to figure out what xml file generates the battery percentage on the notification bar that's all.
    Thanks
     
  9. chaoslimits

    chaoslimits New Member

    Joined:
    Jul 18, 2010
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Can anyone help me with this?
     
  10. titans

    titans Premium Member
    Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    Themers/people draw in the battery percentages on the corresponding pngs. There are a lot more than 9.
     
  11. ZeroBarrier

    ZeroBarrier Guest

    Ratings:
    +0
    Not in MIUI. MIUI actually draws the fill and the percentages and is not just a .png image. When I saw draw, I mean draw, as in graphically and dynamically. The only .png images used for battery, is the outer shape of the battery, and the charging images.
     
  12. titans

    titans Premium Member
    Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    I answered it that way because he has an X and thats how he would do it for his phone, OP, just curious, why do you want to know if MIUI doesnt function on your phone? Just wondering how it works?
     
Search tags for this page
how to draw miui battery icons
,

miui drawable battery icon