Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
junio07
Old
(Last edited by junio07; 5th April 2012 at 06:47 AM.)
#1  
Member - OP
Thanks Meter 11
Posts: 75
Join Date: Dec 2010
Location: Metro M.
Wink [Q] How To Edit progress_horizontal.xml ?

Hi.. i wanna change my Volume Progress Bar. and i figure out that the "progress_horizontal.xml" is the file needed to be edit, but i don't know how. i wanna make mine look like the ICS just a thin Line. but i want a different color a white one. but i don't know how to change the color and how to make the thick yellow progres bar to a thin white line............

by the way im using GinggerYoshi...
any help? Thanks in Advance!
 
AndDiSa
Old
#2  
AndDiSa's Avatar
Senior Member
Thanks Meter 239
Posts: 1,327
Join Date: Dec 2009
Location: Heidelberg
Have a look a t the sources / resources of ICS (framework/base), there you can find what you need to modify the progress / seek layout.

If you have the sources of GingerYoshi (which I do not expect ) then you can edit the xml files with an editor, change the required images and rebuild.

If you don't have the sources you will need first to decompile framework_res.apk (for example by using apktool), before you can edit the xml. After that you need to re-compile everything. *But* it's not guaranteed, that this will always work ...

For changing the color of the progress bar images, you need to use draw9patch tool, because they are .9.png.

B.t.w. I suggest you to have a look at G1 Themes and Wallpapers or Arrow
[GUIDE] Want to learn how to theme?

1. Phone: Samsung Galaxy SII GT-I9100, Android 4.1.2 (Stock, rooted)

2. Phone: G1
Rom: IcedADS_Magpie Gingerbread (2.3.7) based on ezGingerbread and Firerat's magpie
Recovery: Amon RA-Dream-v1.7.0 (MTD:90/2/114, 1.33.0013)
Radio: 2.22.28.25 SPL: 1.33.0013d SD Card: 8GB Class 6 - ~7.2GB Fat32 / ~500MB Ext3

Nexus 7 (16GB), Android 4.2.2 (Rooted Stock)
Follow me on AndDiSa Android Blog.


Get 15 GB(!) of cloud space using copy.com
 
junio07
Old
#3  
Member - OP
Thanks Meter 11
Posts: 75
Join Date: Dec 2010
Location: Metro M.
Quote:
Originally Posted by AndDiSa View Post
Have a look a t the sources / resources of ICS (framework/base), there you can find what you need to modify the progress / seek layout.

If you have the sources of GingerYoshi (which I do not expect ) then you can edit the xml files with an editor, change the required images and rebuild.

If you don't have the sources you will need first to decompile framework_res.apk (for example by using apktool), before you can edit the xml. After that you need to re-compile everything. *But* it's not guaranteed, that this will always work ...

For changing the color of the progress bar images, you need to use draw9patch tool, because they are .9.png.

B.t.w. I suggest you to have a look at G1 Themes and Wallpapers or Arrow
[GUIDE] Want to learn how to theme?
thanks for the help!, yeah i don't have the ginger yoshi sources
but i will try your advice... and that forum that you linked, thanks again!
 
DorianX
Old
#4  
DorianX's Avatar
Senior Member
Thanks Meter 147
Posts: 356
Join Date: Dec 2009
Location: Zapopan, Jalisco

 
DONATE TO ME
You need to modify this areas if you wanna make it thinner "Widget.ProgressBar.Horizontal" and "Widget.SeekBar" in framework-res.apk\res\values something like this:

Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
        <item name="maxHeight">5.0dip</item>
        <item name="indeterminateOnly">false</item>
        <item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
        <item name="progressDrawable">@drawable/progress_horizontal</item>
        <item name="minHeight">5.0dip</item>
    </style>
    <style name="Widget.SeekBar" parent="@style/Widget">
        <item name="focusable">true</item>
        <item name="maxHeight">5.0dip</item>
        <item name="indeterminateOnly">false</item>
        <item name="indeterminateDrawable">@drawable/progress_horizontal</item>
        <item name="progressDrawable">@drawable/progress_horizontal</item>
        <item name="minHeight">5.0dip</item>
        <item name="thumb">@drawable/seek_thumb</item>
        <item name="thumbOffset">8.0dip</item>
Phone: LG Optimus Sol (E730f)
My Rom: CM 7.2 JB Taste

Previous Phone: T-Mobile G1 Black (given to my beautiful girlfriend)
SPL: 1.33.0013d Radio: 2.22.28.25 Recovery: RA-dream-v1.7.0
My Roms: GingerFroyo - FroyoCreamSandwich
The Following User Says Thank You to DorianX For This Useful Post: [ Click to Expand ]
 
junio07
Old
#5  
Member - OP
Thanks Meter 11
Posts: 75
Join Date: Dec 2010
Location: Metro M.
Quote:
Originally Posted by DorianX View Post
You need to modify this areas if you wanna make it thinner "Widget.ProgressBar.Horizontal" and "Widget.SeekBar" in framework-res.apk\res\values something like this:

Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
        <item name="maxHeight">5.0dip</item>
        <item name="indeterminateOnly">false</item>
        <item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
        <item name="progressDrawable">@drawable/progress_horizontal</item>
        <item name="minHeight">5.0dip</item>
    </style>
    <style name="Widget.SeekBar" parent="@style/Widget">
        <item name="focusable">true</item>
        <item name="maxHeight">5.0dip</item>
        <item name="indeterminateOnly">false</item>
        <item name="indeterminateDrawable">@drawable/progress_horizontal</item>
        <item name="progressDrawable">@drawable/progress_horizontal</item>
        <item name="minHeight">5.0dip</item>
        <item name="thumb">@drawable/seek_thumb</item>
        <item name="thumbOffset">8.0dip</item>
Thanks a lot.. by the way. I tried your Froyo Cream Sandwich and i'ts great.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...