downloading bar color from stock orange to lite blue, any idea?

Status
Not open for further replies.

kompheak

Senior Member
Jun 17, 2010
486
60
0
fresno
thanks, im use to switching drawables .png using ninjamorph. now that i found horizontal progress.xml, how do i change the color? do i have to look for the xml file online? or do u have some that u can upload?

thanks

Sent from my HTC Magic using XDA App
 

Bloodflame

Senior Member
Jul 9, 2010
1,032
538
0
Brantford, ON
www.bloodflame.ca
Don't quote me on this, but I believe there's just a numerical value to change in the XML file. I haven't looked myself, but it shouldn't be too hard to find. Open it up in Notepad and take a look around.



...or I could be very wrong :rolleyes: if so, sorry :p
 

Binary100100

Retired Forum Moderator
Apr 6, 2008
6,474
1,647
0
Detroit, Mi
this is the contents of progress_horizontal.xml

If you try to open the xml file from the rom it may not come up.
Grab the one from source and it will display something like this:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:id="@android:id/background">
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#ff9d9e9d"
android:centerColor="#ff5a5d5a"
android:centerY="0.75"
android:endColor="#ff747674"
android:angle="270"
/>
</shape>
</item>

<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#80ffd300"
android:centerColor="#80ffb600"
android:centerY="0.75"
android:endColor="#a0ffcb00"
android:angle="270"
/>
</shape>
</clip>
</item>

<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#ffffd300"
android:centerColor="#ffffb600"
android:centerY="0.75"
android:endColor="#ffffcb00"
android:angle="270"
/>
</shape>
</clip>
</item>

</layer-list>
Once you have made your adjustments then rebuild the rom from source and it should work just fine.

You can use this online tool (amongst the dozens of others) to find your appropriate color.
http://www.2createawebsite.com/build/hex-colors.html
 
Last edited:

kompheak

Senior Member
Jun 17, 2010
486
60
0
fresno
thanks, i will keep these informations for future reference. as for now, i will hold back on this project, thanks again. guess we can close this thread

Sent from my HTC Magic using XDA App
 
Status
Not open for further replies.