What controls hdpi vs xhdpi drawers in framework-res.apk ? - Android Q&A, Help & Troubleshooting

I see the public.xml and stat_sys_battery.xml ... the battery icon percentages are listed in there.
What determines which drawer the pngs are being picked from ? (the hdpi, or the xhdpi ?)

Related

HDPI, MDPI or LDPI?

Have Folio HDPI, MDPI or LDPI display. I think that have got MDPI, because I saw only MDPI folders in HC framework-res.apk. Is it true?
Anyone???
In theory it would be ldpi (sqrt(1024^2+600^6)/10.1" = 117.5 ppi) but all availlable roms use 160ppi (mdpi) as a preset to enforce bigger icons and text.
Thank's!!!

[Q] MOD SystemUI - Pulldown Bar Background

Hi,
So im looking to mod the notification area background on ICS.
I've decompiled systemui but i cant seem to find a png for notification background to edit.
so in res/values/drawables.xml
i find this, which i believe relates to the notification bar (could be wrong)
Code:
<item name="notification_tracking_bg" type="drawable">#d8000000</item>
How can i change this to call a png in hdpi?
i THINK i need to do something like
Code:
<item name="notification_tracking_bg" type="drawable">"android:background="@drawable/mycustombg"</item>
Although something about the above doesnt look right.
Then in HDPI and mycustombg.png
any advice/help would be appreciated
The background is in drawable HDPI, find which one it and drop it into the apk using 7zip
Sent from my GT-I9100 using XDA

[Q] Change Statusbar Icons

I want to edit the icon of my status bar and I have three questions about this:
First: I have to edit the SystemUI.apk or the Framework-res.apk? (because in systemui i dont have battery icons, but yes wifi and etc); And in framework-res i have all the statusbar icons.
Second: I have to edit the .png images with patch 9.png or something?
Third: All the images to replace have to be exactly the same size of pixel? or 2 or 3 pixel more high or width doesnt matters?
If you can help me i will be really gratefull.
Sorry for my english
Yes they have to be the same size. There are no .9 pngs for the icons. And yes you have to edit them both
Wayne Tech Nexus

Asus Memo pad ME301T: HDPI or MDPI?

Hi all,
It is a simple question, I would to know if the ME301T uses HDPI resolution for system icons or MDPI.
I want to make some mod in the status bar, settings menu... but I don't know wich icons to replace or mod.
Thank's!
aguiz said:
It is a simple question, I would to know if the ME301T uses HDPI resolution for system icons or MDPI.
Click to expand...
Click to collapse
Same screen, same resolution as TF300T = MDPI.
phil_man said:
Same screen, same resolution as TF300T = MDPI.
Click to expand...
Click to collapse
ok, but I try to change some icons in SystemUI.apk in the folder "drawable-mdpi" but i the status bar don't chage nothing
Where I must to replace the Icons for mod the statusbar?? In wich folder, and wich names for battery, for example??
thanks
aguiz said:
Where I must to replace the Icons for mod the statusbar?? In wich folder, and wich names for battery, for example??
Click to expand...
Click to collapse
To be sure, between mdpi and hdpi:
- in SystemUI\res\drawable-mdpi, change asus_ep_icon_autobrightness_off.png and asus_ep_icon_autobrightness_on.png
- in SystemUI\res\drawable-hdpi, change asus_ep_icon_setting.png and asus_ep_icon_setting_pressed.png
and see which one make a difference.
(for hdpi use hdpi folder!)
For SystemUI, icons are in \res\drawable, \res\drawable-mdpi, \res\drawable-nodpi, \res\drawable-sw600dp-mdpi and \res\drawable-sw720dp-mdpi
For battery, don't forget system\framework\framework-res\res\drawable-mdpi
You can change icons in Settings.apk and Transformer.apk
Don't forget:
- make a backup before testing
- icons must have the same name, the same size and the same resolution
- at the end, use png Optimizer for a best result, especially if you work with Photoshop
- take care with 9.png
Have fun

[Q]How to change color for brightness slider and volume slider on ICS Rom

Hi everyone, hope i am posting this in
the right section..
Guys, my phone is Samsung Galaxy
Mini which is a ldpi device which now
runs on an ICS rom. I am trying to
change the color for the brightness
sliders and volume sliders.
Which .xml need to be edited to
change the colour..
I decompiled framework-res.apk and
changed hex color values under @id/
progress and @id/secondary progress
in "progress_horizontal.xml", also
changed colors of few pngs in
drawable-mdpi in framework,now the
progress seek bar has changed the
color,but brightness slider color
remains the same.
I then decompiled systemui.apk and
changed the hex color values under
@id/progress in
"adi_seekbar.xml",but nothing got
changed..
Can anyone help me? Which .xml is
associated with the seek bar for
brightness and volume slider? Or
should i deal with smali files to
change the color of brighntness slider
and volume slider..
If that brightness slider you're talking about is in status bar, then look for it's pngs in /res/drawable/ or any drawable folder
iamareebjamal said:
If that brightness slider you're talking about is in status bar, then look for it's pngs in /res/drawable/ or any drawable folder
Click to expand...
Click to collapse
Please see the ss.. need to change the color of brightness slider in the notification drawer.. tried theming all the png's which was mentioned on progress_xx.xml,only the progress bar got changed.. color of the brightness slider is still the same..
This is the ss of volume slider.. this and the brightness slider are the ones i am trying to theme..
Rajesh_m said:
Please see the ss.. need to change the color of brightness slider in the notification drawer.. tried theming all the png's which was mentioned on progress_xx.xml,only the progress bar got changed.. color of the brightness slider is still the same..
Click to expand...
Click to collapse
Check the pngs in SystemUI.apk
iamareebjamal said:
Check the pngs in SystemUI.apk
Click to expand...
Click to collapse
"ic_sysbar_highlight.png" ... will this be the png associated with it? I left to theme this as i thought this wont be the one..
Edit: the above mentioned png is associated with mid_navigation_bar.xml... so no luck with png's
On CM9 and CM10 is quickpanel_brightness_bg.png for the bar and quickpanel_brightness_icon.png for the icon between the bar
davidebeatrici said:
On CM9 and CM10 is quickpanel_brightness_bg.png for the bar and quickpanel_brightness_icon.png for the icon between the bar
Click to expand...
Click to collapse
Thanks for the reply So Quickpanel_brightness_bg changes the slider color or the background color?
Slider I think; background seems to be something like quickpanel_brightness_background.png
davidebeatrici said:
Slider I think; background seems to be something like quickpanel_brightness_background.png
Click to expand...
Click to collapse
Changed the color of quickpanel_brightness_bg.png.... and... guess what.... nothing got changed its all the same
Rajesh_m said:
Changed the color of quickpanel_brightness_bg.png.... and... guess what.... nothing got changed its all the same
Click to expand...
Click to collapse
The xml files that control the progress bar color are theme-dependant and located inside the /res/drawable/ folder.
The names of the files are:
1. scrubber_progress_horizontal_dark.xml
2. scrubber_progress_horizontal_light.xml
In each of these files you'll find a layered list of png's which you'll have to edit to change the look of your progress bar. The last two, scrubber_primary_holo and scrubber_secondary_holo are what you're looking for.
You'll find these in /res/drawable-hdpi (usually). Galaxy Mini, being a LDPI device, it will firstly search for the pngs in drawable-ldpi, then if they're not present there, it will continue searching for the same pngs in the other folder in this order: mdpi, hdpi, xhdpi, xxhdpi. Make sure you edit the pngs found in the folder which represents the lowest resolution possible.
One more thing, these being pngs, you can change the whole look of the slider, not just the color.
alin.p said:
The xml files that control the progress bar color are theme-dependant and located inside the /res/drawable/ folder.
The names of the files are:
1. scrubber_progress_horizontal_dark.xml
2. scrubber_progress_horizontal_light.xml
In each of these files you'll find a layered list of png's which you'll have to edit to change the look of your progress bar. The last two, scrubber_primary_holo and scrubber_secondary_holo are what you're looking for.
You'll find these in /res/drawable-hdpi (usually). Galaxy Mini, being a LDPI device, it will firstly search for the pngs in drawable-ldpi, then if they're not present there, it will continue searching for the same pngs in the other folder in this order: mdpi, hdpi, xhdpi, xxhdpi. Make sure you edit the pngs found in the folder which represents the lowest resolution possible.
One more thing, these being pngs, you can change the whole look of the slider, not just the color.
Click to expand...
Click to collapse
Thanks for the detailed post and you are SPOT ON! i have no idea how i missed those png's.. thanks a lot @alin.p

Categories

Resources