FORUMS

The Atlas of XDA

A few weeks ago, we asked you “How Does Your Location Affect Your Life As A Power User?”. In the days that … more

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 … more

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were … more

Droid Turbo Lollipop OTA, 2015 Moto G Leaked – XDA TV

Android Lollipop for the Droid Turbo has been released. That and much more … more

[Q] How To Edit progress_horizontal.xml ?

134 posts
Thanks Meter: 22
 
By junio07, Senior Member on 5th April 2012, 06:37 AM
Post Reply Subscribe to Thread Email Thread
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!
Last edited by junio07; 5th April 2012 at 06:47 AM.
 
 
5th April 2012, 08:03 AM |#2  
AndDiSa's Avatar
Senior Member
Flag Heidelberg
Thanks Meter: 352
 
More
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?
5th April 2012, 04:17 PM |#3  
OP Senior Member
Flag Metro M.
Thanks Meter: 22
 
More
Talking
Quote:
Originally Posted by AndDiSa

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!
7th April 2012, 08:12 AM |#4  
DorianX's Avatar
Senior Member
Flag Zapopan, Jalisco
Thanks Meter: 379
 
Donate to Me
More
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>
The Following 2 Users Say Thank You to DorianX For This Useful Post: [ View ]
8th April 2012, 06:34 AM |#5  
OP Senior Member
Flag Metro M.
Thanks Meter: 22
 
More
Wink
Quote:
Originally Posted by DorianX

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.
5th February 2015, 11:25 AM |#6  
Account currently disabled
Thanks Meter: 9
 
More
Quote:
Originally Posted by junio07

Thanks a lot.. by the way. I tried your Froyo Cream Sandwich and i'ts great.

and change color for have pannel white type here-> http://s15.postimg.org/ooqhsxltn/Scr...7_13_55_01.png
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes