[Guide]Smooth Spinners for GB and ICS - HyperDroid - Android Software/Hacking General [Developers Only]

This Guide is intended for rom developers/cooks to add some visual candy for they roms.
All credits are due to ihlades, and we would want to thank him for all his efforts to the Open Source community, a true example of a respected developer and we are very proud to have him here at XDA...Thanks!!, to pongster who has been sharing this since he opensourced his GBX project over at the HD2 forums, and all the great devs who help other users into becoming true modders, thanks!!
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
you must have basic compiling/decompiling knowledge and already have the tools set up to it to edit xmls.
The xmls are located at framework-res.apk/res/drawable
This is the list of the xmls to edit
progress_large.xml
progress_large_white.xml
progress_medium.xml
progress_medium_white.xml
progress_small.xml
progress_small_titlebar.xml
progress_small_white
search_spinner.xml
copy and paste replacing current code with this code into them
progress_large.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_large_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_medium.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_medium_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small_titlebar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
search_spinner.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_20" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
then compile back.
If you noticed, all we are doing is increasing the frames count in the same time, giving the spinners the smooth animation it deserves
here are the xmls zipped uncompiled for your commodity, just replace them in framework-res.apk/res/drawable, then compile back.
and here is a vrtheme for it, it should work in any device (untested and dont come crying here it doesnt work, if it doesnt, then do the whole process which is about 1 min if you know what you are doing)

Great tutorial this new year!
You are the man Doc

Any screenshots from GB? I can try with ICS

neobuddy89 said:
Any screenshots from GB? I can try with ICS
Click to expand...
Click to collapse
Screenshots? Impossible, you will need a video for it...ill give u a hint frames/sec
Try to search for hyperdroid in youtube, there are plenty of videos there. Look at the spinnibg circle when the device is "thinking", its not pause like on stock, its smooth

doctorcete said:
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
Click to expand...
Click to collapse
Thank you very much for this interesting job.
But what's about Sense GB ROMs?
I've edited xml files according your tutorial in the framework-res.apk in my 3.5 Sense ROM for HD2 and received permanent FC of HTC Sense.
Any advice?

alexdoux25 said:
Thank you very much for this interesting job.
But what's about Sense GB ROMs?
I've edited xml files according your tutorial in the framework-res.apk in my 3.5 Sense ROM for HD2 and received permanent FC of HTC Sense.
Any advice?
Click to expand...
Click to collapse
FC?, u edited and compiled framework?, I modded sense before (HTC Desire HD), and it fid not gave me problems. Upload your framework, Ill do it for ya. But it should work when compiling framework-res.apk.

doctorcete said:
FC?, u edited and compiled framework?, I modded sense before (HTC Desire HD), and it fid not gave me problems. Upload your framework, Ill do it for ya. But it should work when compiling framework-res.apk.
Click to expand...
Click to collapse
Thanks once more.
I've solved FC problems already.
It was my mistake compiling apk. Now everything is OK.

hey, i jz tried it out on xperia x10 and its working.
jz to report

alexdoux25 said:
Thanks once more.
I've solved FC problems already.
It was my mistake compiling apk. Now everything is OK.
Click to expand...
Click to collapse
Great, i was sure there was a nonsense prob, glad u figured it out.
xcxa23 said:
hey, i jz tried it out on xperia x10 and its working.
jz to report
Click to expand...
Click to collapse
, its a nice mod isnt it?

doctorcete said:
This Guide is intended for rom developers/cooks to add some visual candy for they roms.
All credits are due to ihlades, and we would want to thank him for all his efforts to the Open Source community, a true example of a respected developer and we are very proud to have him here at XDA...Thanks!!, to pongster who has been sharing this since he opensourced his GBX project over at the HD2 forums, and all the great devs who help other users into becoming true modders, thanks!!
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
you must have basic compiling/decompiling knowledge and already have the tools set up to it to edit xmls.
The xmls are located at framework-res.apk/res/drawable
This is the list of the xmls to edit
progress_large.xml
progress_large_white.xml
progress_medium.xml
progress_medium_white.xml
progress_small.xml
progress_small_titlebar.xml
progress_small_white
search_spinner.xml
copy and paste replacing current code with this code into them
Code:
<?xml version="1.0" encoding="UTF-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_20" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
then compile back.
If you noticed, all we are doing is increasing the frames count in the same time, giving the spinners the smooth animation it deserves
here are the xmls zipped uncompiled for your commodity, just replace them in framework-res.apk/res/drawable, then compile back.
and here is a vrtheme for it, it should work in any device (untested and dont come crying here it doesnt work, if it doesnt, then do the whole process which is about 1 min if you know what you are doing)
Click to expand...
Click to collapse
Will it work with Froyo on my Galaxy 3?

absolutly love this mod on my Galaxy note..
a question though - can anything be done to smooth out the progress bar ?
Mitch

mitchsub said:
absolutly love this mod on my Galaxy note..
a question though - can anything be done to smooth out the progress bar ?
Mitch
Click to expand...
Click to collapse
Yes there is, as a matter of fact we use that mod aswell.
At mobile right now so cant give u specifics, but that is related to progressbar, adding more png to drawable hdpi and to xml that call for them, I will get back to you on that one.
If you notice, this are very simple moda that make our devices better. Very simple ones.

doctorcete said:
Yes there is, as a matter of fact we use that mod aswell.
At mobile right now so cant give u specifics, but that is related to progressbar, adding more png to drawable hdpi and to xml that call for them, I will get back to you on that one.
If you notice, this are very simple moda that make our devices better. Very simple ones.
Click to expand...
Click to collapse
would very much appreciate that mate - hopefully the chef's will incorporate them in their up and coming ROM's although I might have a play myself
three things I don't like about my Note is -
1. Spinners - which you have sorted
2. Progress Bar - which I would like to smooth out
3. Unlock and Call select - also like to smooth out
thanks again for you time and guide
Mitch

mitchsub said:
would very much appreciate that mate - hopefully the chef's will incorporate them in their up and coming ROM's although I might have a play myself
three things I don't like about my Note is -
1. Spinners - which you have sorted
2. Progress Bar - which I would like to smooth out
3. Unlock and Call select - also like to smooth out
thanks again for you time and guide
Mitch
Click to expand...
Click to collapse
So u would basically want a hyperdroid rom dont you
Ill try to do the progress bar stuff today
Sent from my GT-P1000 using Tapatalk

D.O.C said:
So u would basically want a hyperdroid rom dont you
Ill try to do the progress bar stuff today
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Thanks D.O.C,nice one.
Hope to see and smooth progress bar

Hi, I know there are a few topic about this, but I checked it and don't have an answer.
I want to get work this: http://forum.xda-developers.com/showthread.php?t=1427510
So I dowloaded smoothspinners.7z and copy famework-res.apk from my phon to place-apk-here-for-modding in sdk folder (I installed APK Multi-Tool version 2.0)
I opened APK Multi-Tool and chose 9 (decompile) next go to project folder and replace file from smoothspinners.7z to framework-res.apk/res/drawable.
After that I chose 11 (compile) in APK Multi-Tool
"is this a system apk?" I chose "y"(yes)
"Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors" I chose "n" (no)
Next rename "unsignedframework-res.apk" from place-apk-here-for-modding to framework-res.apk and copy to android-sdk/platform-tools/
Next I adb:
adb remount
adb push /system/framework/framework-res.apk
adb remount
Next change permission to 644
And after reboot I have bootloop
Can someone help me, please? (of coures I have backup in recovery so my phon work, but I want to know what I made wrong in this steps)

atomic339 said:
Hi, I know there are a few topic about this, but I checked it and don't have an answer.
I want to get work this: http://forum.xda-developers.com/showthread.php?t=1427510
So I dowloaded smoothspinners.7z and copy famework-res.apk from my phon to place-apk-here-for-modding in sdk folder (I installed APK Multi-Tool version 2.0)
I opened APK Multi-Tool and chose 9 (decompile) next go to project folder and replace file from smoothspinners.7z to framework-res.apk/res/drawable.
After that I chose 11 (compile) in APK Multi-Tool
"is this a system apk?" I chose "y"(yes)
"Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors" I chose "n" (no)
Next rename "unsignedframework-res.apk" from place-apk-here-for-modding to framework-res.apk and copy to android-sdk/platform-tools/
Next I adb:
adb remount
adb push /system/framework/framework-res.apk
adb remount
Next change permission to 644
And after reboot I have bootloop
Can someone help me, please? (of coures I have backup in recovery so my phon work, but I want to know what I made wrong in this steps)
Click to expand...
Click to collapse
Seems like you are not copying signatures. Copy from original apk to new meta-inf folfer and androidmanifest.xml
Sent from my GT-I9100 using xda premium

Great mod, my spinners look great now.....so smooth! I would also be interested in the progress bars mod as well

Great Eye Candy! Thanks for this.
I may have missed it, but I did not see it mentioned in this thread:
This worked perfectly in Froyo (HTC Sense)!
Made a bigger difference in the 'feel' than I expected!
I know the thread is getting a little old, but I was also curious about the Smoother Progress Bar, or smoother anything else for that matter! Any update on that one?

DocHoliday77 said:
Great Eye Candy! Thanks for this.
I may have missed it, but I did not see it mentioned in this thread:
This worked perfectly in Froyo (HTC Sense)!
Made a bigger difference in the 'feel' than I expected!
I know the thread is getting a little old, but I was also curious about the Smoother Progress Bar, or smoother anything else for that matter! Any update on that one?
Click to expand...
Click to collapse
Would like to know that to
btw: getting a bootloop :/ so I reverted changes

Related

[HELP] Custom battery icons for EB 4.0.4

I love the EB ROM and the ICS look and feel. However I can't stand the battery icon and percentage distributions. I'm trying to create my own.
I went into the systemui.apk, decompiled with APK multi-tool, edited stat_sys_battery and stat_sys_battery_charge XMLs and swapped PNGs.
I edited the sys_battery XML to look like this:
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
All the way until I got to 100. I did the same thing for the sys_battery_charge XML but of course in its specific structure but the same method.
Compiled APK and set permissions to RW R R and placed into system/app and replaced old systemui.apk.
The new battery Icon appears and looks great but it is NOT accurately portraying the phones real battery percentage level. I even went as far as editing the same XMLs in the framework-res.apk but it had ZERO affect on my issue.
Any help please is GREATLY appreciated! This is my first attempt at doing any coding/theming/etc. so I am a complete newbie at this kinda stuff.
Screenshot
Sent from my LG-P999 using xda premium
Got it up and running. Look in EB 4.0.4 AOSP ROM thread for download.

[GUIDE] Shadow/gradient on statusbar like GN3/S4/KitKat

Hello,
Already posted HERE, thank you to @ATTACK.
I've tried it and it's works on our Note. You can skip step modify android.policy.jar :good:
ikromy said:
Hello,
Already posted HERE, thank you to @ATTACK.
I've tried it and it's works on our Note. You can skip step modify android.policy.jar :good:
Click to expand...
Click to collapse
What did you exactly do?
Share your moded SystemUI.apk:good:
+ 1000. Also if you have just posted this thread for the sake of it, Mods please close the thread if there is no response from the OP.
mjrifath said:
Share your moded SystemUI.apk:good:
Click to expand...
Click to collapse
Please !!
ikromy said:
Hello,
Already posted HERE, thank you to @ATTACK.
I've tried it and it's works on our Note. You can skip step modify android.policy.jar :good:
Click to expand...
Click to collapse
This is a very intresting thread..please dont close it.. I am facing problem in compling systemui...Please Please..share your SystemUI for stock deodexed rom..
akhil093 said:
This is a very intresting thread..please dont close it.. I am facing problem in compling systemui...Please Please..share your SystemUI for stock deodexed rom..
Click to expand...
Click to collapse
+1! Lost my modded wallpapers with the fake shadow, Please share!
ok
Hello,
there are many ways to make status bar shadow, here's I share the simple way..
1. after decompile your systemUI, Go to SystemUI.apk\res\values and open drawables.xml and focus on this line and remove it:
Code:
<item type="drawable" name="status_bar_background">xxxxxxxxxxxxxxxxx</item>
2. create file : \SystemUI.apk\res\drawable\status_bar_background.xml and fill with this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#00000000" android:endColor="#66000000" android:angle="@integer/status_bar_recents_bg_gradient_degrees" name="status_bar_background" />
</shape>
in previous guide, the developer wrote "android:endColor" with value "#99000000", it's your choices...
3. Compile it. Done.
Download HERE from Sweet ROM 10.5 Black
ikromy said:
Hello,
there are many ways to make status bar shadow, here's I share the simple way..
1. after decompile your systemUI, Go to SystemUI.apk\res\values and open drawables.xml and focus on this line and remove it:
Code:
<item type="drawable" name="status_bar_background">xxxxxxxxxxxxxxxxx</item>
2. create file : \SystemUI.apk\res\drawable\status_bar_background.xml and fill with this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#00000000" android:endColor="#66000000" android:angle="@integer/status_bar_recents_bg_gradient_degrees" name="status_bar_background" />
</shape>
in previous guide, the developer wrote "android:endColor" with value "#99000000", it's your choices...
3. Compile it. Done.
Download HERE from Sweet ROM 10.5 Black
Click to expand...
Click to collapse
A BIG THANKS to you mate... you made my day ... THANK YOU SOOO MUCH BRO..
ikromy said:
Hello,
Already posted HERE, thank you to @ATTACK.
I've tried it and it's works on our Note. You can skip step modify android.policy.jar :good:
Click to expand...
Click to collapse
Can you please share your transparent Google search box (5x1) widget .. as in your screenshots... I searched it evrywhere on xda and google but everytime i found 4x1 (non-resizeable)...which doesn't suits to our note...please share if you have..
ok
akhil093 said:
Can you please share your transparent Google search box (5x1) widget .. as in your screenshots... I searched it evrywhere on xda and google but everytime i found 4x1 (non-resizeable)...which doesn't suits to our note...please share if you have..
Click to expand...
Click to collapse
tomorow
ikromy said:
tomorow
Click to expand...
Click to collapse
Thanks in advance.
1) the shadow is too low --> works fine
2) Doesnt really work well, coz i also use Tinted Status bar.. doesnt work with tht.
3) Doesnt work with Gravity Box either.

[TUT]Developing G3 TweaksBox Themes

As many of you know, in the new release of G3 TweaksBox i implemented a theme engine that allows users to develop their own themes.Creating themes is really simple:at the end of this post you can find a theme example i created with resources provided by @Kickoff and an empty theme template you can use to develop your own themes.
What can you theme ?
SystemUI(see LGSystemUI.apk)
LockScreen(see LGKeyguard.apk)
Phonebook,InCallUI,TeleService(see LGContacts.apk,InCallUI.apk,LGTeleservice.apk)
Message App(see LGMessage.apk)
Settings(see LGSettings.apk and LGEasySettings.apk)
More to come....
1)Modify the package name:
Open the MANIFEST(AndroidManifest.xml) and change the package name.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="[COLOR="Red"][B]it.ptoti.systemui_theme.htc[/B][/COLOR]"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="it.ptoti.systemui_theme.htc.MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="it.ptoti.g3_tweaksbox.systemui.THEME"/>
<!-- <action android:name="it.ptoti.g3_tweaksbox.settings.THEME"/> -->
<!-- <action android:name="it.ptoti.g3_tweaksbox.lockscreen.THEME"/> -->
<!-- <action android:name="it.ptoti.g3_tweaksbox.incallui.THEME"/> -->
<!-- <action android:name="it.ptoti.g3_tweaksbox.phonebookapp.THEME"/> -->
<!-- <action android:name="it.ptoti.g3_tweaksbox.messageapp.THEME"/> -->
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</manifest>
2)Change Theme Name:
Open the strings.xml file(res/values/) and change the theme name
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">[COLOR="Red"]HTC Panel THEME<[/COLOR]/string>
</resources>
2-1)Add Intents in the Manifest File:
Code:
<action android:name="it.ptoti.g3_tweaksbox.systemui.THEME"/> [COLOR="Red"]for the LGSystemUI[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.settings.THEME"/> [COLOR="red"] for the LGSettings[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.easysettings.THEME"/> [COLOR="red"] for the LGEasySettings[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.lockscreen.THEME"/> [COLOR="red"]for LGKeyGuard[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.incallui.THEME"/> [COLOR="red"] for InCallUi[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.teleservice.THEME"/> [COLOR="red"] for TeleService[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.phonebookapp.THEME"/> [COLOR="red"]for LGContacts[/COLOR]
<action android:name="it.ptoti.g3_tweaksbox.messageapp.THEME"/> [COLOR="red"]for LGMessage[/COLOR]
Manifest example : Here you can see a manifest example of theme for SystemUI and Settings only
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.ptoti.systemui_theme.template"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="it.ptoti.systemui_theme.htc.MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
[COLOR="red"][SIZE="3"] <action android:name="it.ptoti.g3_tweaksbox.systemui.THEME"/>
<action android:name="it.ptoti.g3_tweaksbox.settings.THEME"/>[/SIZE][/COLOR]
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</manifest>
3)REPLACING RESOURCES:
REPLACING QUICKSETTINGS' ICONS AND ANIMATIONS:
You just have to put your modified resources in the relative folders. Drawables MUST have the same name they have in the SystemUI package: if G3 TWB finds them it replaces the original resources with the themes' ones.
Also,you have to add these lines to the theme.xml you can find in the xml folder
<Drawable name="indi_noti_rearrange_normal" />
<Drawable name="indi_noti_rearrange_pressed" />
<Drawable name="quicksetting_button_edit_bg" />
REPLACE OTHER RESOURCES:
Other resources MUST be ALSO defined in the relative xml file you can find in the xml folder:
theme.xml -----------------> For the SystemUI
theme_contacts.xml -------------> For LGContacts.apk
theme_incallui.xml ---------------> For InCallUI.apk
theme_lockscreen.xml -----------> For LGKeyGuard.apk
theme_messageapp --------------> For LGMessage.apk
theme_settings.xml ---------------> For LGSettings.apk
theme_teleservice.xml------------------> For LGTeleService.apk
theme_easysettings.xml---------------> For LGEasySettings.apk
Let's take a look to an example.
Code:
<?xml version="1.0" encoding="utf-8"?>
<G3_TweaksBox_SystemUI_Theme version="1">
<Drawable name="ic_brightness_auto_check"/>
<Drawable name="ic_launcher_settings" />
<Drawable name="scrubber_primary_holo" />
<Drawable name="ic_notify_settings_set" />
<Drawable name="indi_noti_btn_vol_set" />
<Drawable name="ic_notify_quicksetting_brightness_panel" />
<Drawable name="ic_notify_quicksetting_ringtone" />
<Drawable name="indi_noti_btn_clear" />
<Color name="np_clock" replacement="#FF00FF00"/>
<Color name="bg_expanded" replacement="#FF000000" />
</G3_TweaksBox_SystemUI_Theme>
To replace a drawable the syntax is:
Code:
<Drawable name="name_of_original_drawable" replacement="name_of_the_drawable_in_your_theme" / >
The replacement attribute is optional: if you name the drawable as the original one in the SystemUI you can omit it.
You can also replace a Drawable with a color with the following syntax:
Code:
<Drawable name="name_of_original_drawable" replacement="colorDrawable:#AARRGGBB" / >
Where AARRGGBB is the color code in the ARGB format(but you can use also RGB format)
To replace a color the syntax is the following:
Code:
<Color name="name_of_original_color" replacement="#AARRGGBB" />
If you want to replace a drawable(or a color) which is actually in the framework-res you can use the same syntax but you have to add the packageRes attribute, example :
Code:
<Drawable respackage="com.lge" name="switch_thumb_activated_holo_light"/>
To replace a dimension the syntax is the following:
Code:
<Dimen name="name_of_original_dimension" replacement="20.0" />
The replacement must be a dip value not a px one.
To replace an integer the syntax is the following:
Code:
<Integer name="name_of_original_integer" replacement="20" />
To assign a backgound(Drawable or Color) to any layout the syntax is the following :
Code:
<LayoutBackground name="layout_name" background="name_of_the_drawable" />
To assign a background(Drawable or Color) to any child layout the syntax is the following :
Code:
<LayoutBackground name="master_layout_name" child="child_layout_name" background="name_of_the_drawable" />
That's all,remember to sign the theme before trying to install it. The TUT will be updated when new features are added to the theme engine.
Very good work!
Just what I needed. Thanks
blackbearblanc said:
Just what I needed. Thanks
Click to expand...
Click to collapse
what's up black..! u picked up a g3..? NICE..!
Sent from my LGLS990 using Tapatalk
matthew0776 said:
what's up black..! u picked up a g3..? NICE..!
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
Sis yes sir! Got a free one from LG to review!
blackbearblanc said:
Just what I needed. Thanks
Click to expand...
Click to collapse
I was about to share this with you lol.
blackbearblanc said:
Sis yes sir! Got a free one from LG to review!
Click to expand...
Click to collapse
NICE... so...u got plans with the template..? lol I'm gonna try and get the Candy shop Softkeys going if possible... are u using apktool
Sent from my LGLS990 using Tapatalk
Dammit - howcome i cant import any of them into eclipse??
Nothing happens. And if dragging folder into workspace - it says "Destination folder must be accessible"
---------- Post added at 07:45 PM ---------- Previous post was at 07:34 PM ----------
silly me - yes apktools, not just 7zip
matthew0776 said:
NICE... so...u got plans with the template..? lol I'm gonna try and get the Candy shop Softkeys going if possible... are u using apktool
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
You can't theme SoftKeys in this way. SoftKeys res are actually out of the SystemUI package. The ROM already comes with a SoftKey theme engine which is fully working if you are using G2/G3 TWB. I explained a long time ago how to develop softkeys themes infact you can find a lot of themes already on the scene
http://forum.xda-developers.com/showthread.php?p=52818274
http://forum.xda-developers.com/showthread.php?p=52818274
http://forum.xda-developers.com/showthread.php?p=52818274
blackbearblanc said:
Dammit - howcome i cant import any of them into eclipse??
Nothing happens. And if dragging folder into workspace - it says "Destination folder must be accessible"
Click to expand...
Click to collapse
They are compiled apk, most themers don't use eclipse just decompile/recompile the package. Anyway i'm more than pleased you use eclipse. Attached you can find the template
P_Toti said:
You can't theme SoftKeys in this way. SoftKeys res are actually out of the SystemUI package. The ROM already comes with a SoftKey theme engine which is fully working if you are using G2/G3 TWB. I explained a long time ago how to develop softkeys themes infact you can find a lot of themes already on the scene
http://forum.xda-developers.com/showthread.php?p=52818274
http://forum.xda-developers.com/showthread.php?p=52818274
http://forum.xda-developers.com/showthread.php?p=52818274
They are compiled apk, most themers don't use eclipse just decompile/recompile the package. Anyway i'm more than pleased you use eclipse. Attached you can find the template
Click to expand...
Click to collapse
so what's themeable ? SystemUI ?
Sent from my LGLS990 using Tapatalk
---------- Post added at 07:10 PM ---------- Previous post was at 07:09 PM ----------
matthew0776 said:
so what's themeable ? SystemUI ?
oh snap...u have some of the CS keys already...sweet..!
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
Sent from my LGLS990 using Tapatalk
matthew0776 said:
so what's themeable ? SystemUI ?
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
Also softkeys are themeable, simply you can't theme them using this TUT. If you want i can write another tut explaining how to develop softkeys themes. Anyway yes at the moment you can theme only the SystemUI but, as i explained in the first post the theme engine is in a early stage. It will be much more powerful in the 1.3 and you will able to theme other apps too.
Strings.xml is not present in values folder.
and values 11 and 14 gives me errors. One of them is empty. other one has: <?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="AppBaseTheme" parent="@android:style/Animation.TypingFilterRestore" />
</resources>
P_Toti said:
Also softkeys are themeable, simply you can't theme them using this TUT. If you want i can write another tut explaining how to develop softkeys themes. Anyway yes at the moment you can theme only the SystemUI but, as i explained in the first post the theme engine is in a early stage. It will be much more powerful in the 1.3 and you will able to theme other apps too.
Click to expand...
Click to collapse
Why it using the default softkeys on the launcher? I never got it.
P_Toti said:
They are compiled apk, most themers don't use eclipse just decompile/recompile the package. Anyway i'm more than pleased you use eclipse. Attached you can find the template
Click to expand...
Click to collapse
AH! Just saw this. Thanks man
---------- Post added at 08:32 PM ---------- Previous post was at 08:28 PM ----------
And we shouldnt edit this in manifest? android:name="it.ptoti.systemui_theme.htc.MainActivity"
blackbearblanc said:
AH! Just saw this. Thanks man
---------- Post added at 08:32 PM ---------- Previous post was at 08:28 PM ----------
And we shouldnt edit this in manifest? android:name="it.ptoti.systemui_theme.htc.MainActivity"
Click to expand...
Click to collapse
You could change the activity name without generating any issue but i don't advice it. Some AV could report the theme as a false positive if the manifest point to a non-existing activity(don't ask me why but i saw this with softkeys themes). If you want to change the name since you are using eclipse you can safely do it with re-factoring: Right click on the activity------------->Refactor------------>Rename
P_Toti said:
You could change the activity name without generating any issue but i don't advice it. Some AV could report the theme as a false positive if the manifest point to a non-existing activity(don't ask me why but i saw this with softkeys themes). If you want to change the name since you are using eclipse you can safely do it with re-factoring: Right click on the activity------------->Refactor------------>Rename
Click to expand...
Click to collapse
Sorry for the noobness. But are we supposed to copy this folder "drawable-640dpi" from the htc example. And then change icons?. ?
Cause That folder is not inside the eclipsetemplate
blackbearblanc said:
Sorry for the noobness. But are we supposed to copy this folder "drawable-640dpi" from the htc example. And then change icons?. ?
Cause That folder is not inside the eclipsetemplate
Click to expand...
Click to collapse
The template is empty. You have to copy high res to drawable-xxxhdpi which is the same of drawable-640dpi. Obviously you can copy all res from the HTC package but you should copy also selectors and anims that are in drawable folder(basically you have copy the drawable and drawable-640dpi folders).
ok - so these need to stay? values-v11
---------- Post added at 09:43 PM ---------- Previous post was at 09:12 PM ----------
Think i got it. Yoav walked me through it
P_Toti said:
Also softkeys are themeable, simply you can't theme them using this TUT. If you want i can write another tut explaining how to develop softkeys themes. Anyway yes at the moment you can theme only the SystemUI but, as i explained in the first post the theme engine is in a early stage. It will be much more powerful in the 1.3 and you will able to theme other apps too.
Click to expand...
Click to collapse
that would be great...I can package more keys from CandyShop ...Cyberscopes included... I can use eclipse or apktool prefer eclipse for something like this tho...
Sent from my LGLS990 using Tapatalk
---------- Post added at 08:44 PM ---------- Previous post was at 08:43 PM ----------
blackbearblanc said:
ok - so these need to stay? values-v11
---------- Post added at 09:43 PM ---------- Previous post was at 09:12 PM ----------
Think i got it. Yoav walked me through it
Click to expand...
Click to collapse
did it compile via Eclipse Black..?
Sent from my LGLS990 using Tapatalk
blackbearblanc said:
ok - so these need to stay? values-v11
Click to expand...
Click to collapse
No, you can delete them. That folder was automatically created, it's not needed for the theme.
matthew0776 said:
that would be great...I can package more keys from CandyShop ...Cyberscopes included... I can use eclipse or apktool prefer eclipse for something like this tho...
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
Ok, i will write a tut very soon.

[GUIDE][MOD][2.3+]How to add Owner text in Statusbar || with app controller

Introduction
Luminious Owner Text is a Mod i have created for Adding ur Name into statusbar or somewhere else and then control it via App its will save ur time No need to reboot after applying changes through app
Features​
Text Color Changer
Text Changer
RealTime Changing
Okay now lets implement it
Requirements​
apktool
notepad++
brain.jar
Step1​
Decompile SystemUI.apk (there is many guides available for that)
open merge all smali's provided in attachment
Open res/layout/tw_status_bar.xml
Copy this line and paste it anywhere in statusbar.xml its upto u where u want ur name​
Code:
<com.shadesk.mods.ShadyText android:textStyle="bold" android:id="@+id/shadytext" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save everything & recompile ur work and then again decompile the newly created apk​
Step2​
open smali/com/shadesk/ShadyText.smali
Open Public.xml
find this in public.xml & copy its id means 0x7fxxxxxx here xxx will be some digits cuz mine & ur = not same so i use xx​
Code:
<public type="id" name="shadytext"
Copy the id of the line i have mention before and replace with this​
Code:
0x7f0d0143
NOTE:- 0x7f0d0143 is in ShadyText.smali so find this & replace the code with ur id​
Done
Save Everything
Recompile
Sign
Push
Install The Apk Provided in Attachments
Enjoy
There is two apk in attachmentd one is for gb users and one is for 3.0 above​
Screenshots in 2nd post
Credits in 3rd post
Screenshots
SCREENS​
CREDITS
CREDITS
@AndroidFire for helping me into customviews
@b16h22 for his source & permissiom to use
@serajr for smali guide​
:thumbup::thumbup::thumbup:
Just amazing!!
I'm glad to know I've helped you out somehow!
Good Job sir
Glad to know that you put my name on it.by the way nice mod keep it up
serajr said:
Just amazing!!
I'm glad to know I've helped you out somehow!
Click to expand...
Click to collapse
Nice to see master on my Thread btw sir seriously ur External Guide helped me alot and Thank u
@RaKesh & @AndroidFire Thanks Guyz
Lol Fire bro i have to put ur name u know y?? Because of customviews
nice mode >>>>
ARGHA_DAS said:
Introduction
Luminious Owner Text is a Mod i have created for Adding ur Name into statusbar or somewhere else and then control it via App its will save ur time No need to reboot after applying changes through app
Features​
Text Color Changer
Text Changer
RealTime Changing
Okay now lets implement it
Requirements​
apktool
notepad++
brain.jar
Step1​
Decompile SystemUI.apk (there is many guides available for that)
open merge all smali's provided in attachment
Open res/layout/tw_status_bar.xml
Copy this line and paste it anywhere in statusbar.xml its upto u where u want ur name​
Code:
<com.shadesk.mods.ShadyText android:textStyle="bold" android:id="@+id/shadytext" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save everything & recompile ur work and then again decompile the newly created apk​
Step2​
open smali/com/shadesk/ShadyText.smali
Open Public.xml
find this in public.xml & copy its id means 0x7fxxxxxx here xxx will be some digits cuz mine & ur = not same so i use xx​
Code:
<public type="id" name="shadytext"
Copy the id of the line i have mention before and replace with this​
Code:
0x7f0d0143
NOTE:- 0x7f0d0143 is in ShadyText.smali so find this & replace the code with ur id​
Done
Save Everything
Recompile
Sign
Push
Install The Apk Provided in Attachments
Enjoy
There is two apk in attachmentd one is for gb users and one is for 3.0 above​
Screenshots in 2nd post
Credits in 3rd post
Click to expand...
Click to collapse
bro @ARGHA_DAS can ua add it here? . i mean the text size option bro. .thanks in advance. . .keep it up. . .
yeah buddy just wait for the updates
Dreamstar said:
nice mode >>>>
Click to expand...
Click to collapse
Thanks

Change Statusbar Icons to the Pixel ones

Hi,
how could I change the Icons in the statusbar (wifi, battery, ...) from the HTC ones to the ones from the Pixel?
=dave= said:
Hi,
how could I change the Icons in the statusbar (wifi, battery, ...) from the HTC ones to the ones from the Pixel?
Click to expand...
Click to collapse
ViperU comes with them on the full rom (not the magisk one)
Cryosx said:
ViperU comes with them on the full rom (not the magisk one)
Click to expand...
Click to collapse
I don't see them in the rom. the hub is empty too.
fix-this! said:
I don't see them in the rom. the hub is empty too.
Click to expand...
Click to collapse
Just making sure, but is there a difference between pixel icons and stock Android icons?
If there isn't, ViperU should have them because I distinctly remember the icons being different from HTC's. Especially the VPN icon.
decompile the system ui apk and replace the stock stat_sys images with the pixel ones
badboys rom has aosp based statusbar icons.
Digitalkarma said:
decompile the system ui apk and replace the stock stat_sys images with the pixel ones
Click to expand...
Click to collapse
the google statusbar icons are not imgs u can swap, the icons are done w/ xml
fix-this! said:
badboys rom has aosp based statusbar icons.
Click to expand...
Click to collapse
yep, the stock icons are hideous!
OMJ said:
the google statusbar icons are not imgs u can swap, the icons are done w/ xml
yep, the stock icons are hideous!
Click to expand...
Click to collapse
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Digitalkarma said:
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Click to expand...
Click to collapse
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
jsaxon2 said:
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
Click to expand...
Click to collapse
i don't have an U11 yet. still on the fence, but once sprint officially brings the Solar Red or Amazing Silver to their network and maybe drop the retail price down by $50-100 then i'm on the U11. i know it aint going to be $696 for long hoping by Fall/Winter they worked all the production kinks out, drop the price a little and maybe include a few extra goodies in there to entice the late adopters once sales cools off
Digitalkarma said:
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Click to expand...
Click to collapse
the stock htc icons on the unlocked version are images that can be swapped...I'm sure there are several ways to accomplish the same goal, but my method adds the google xmls back to systemui (ie..google_stat_sys_signal_0.xml) then I change the resource value in HtcIcons.smali to point to those xmls, here's an example of one of the xmls...I'm not sure how the Pixel sets those icons, xml or imgs
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="17.0dip" android:autoMirrored="true" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z" />
</vector>
jsaxon2 said:
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
Click to expand...
Click to collapse
Do you happen to know how to change the VPN icon as well?
Cryosx said:
Do you happen to know how to change the VPN icon as well?
Click to expand...
Click to collapse
I do not, sorry. I never use VPN so never looked for it.
OMJ said:
the stock htc icons on the unlocked version are images that can be swapped...I'm sure there are several ways to accomplish the same goal, but my method adds the google xmls back to systemui (ie..google_stat_sys_signal_0.xml) then I change the resource value in HtcIcons.smali to point to those xmls, here's an example of one of the xmls...I'm not sure how the Pixel sets those icons, xml or imgs
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="17.0dip" android:autoMirrored="true" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z" />
</vector>
Click to expand...
Click to collapse
Does this work on Oreo? Can you please guide (some short instructions) me on how to modify status bar icons on U11 Oreo?
Pat123 said:
Does this work on Oreo? Can you please guide (some short instructions) me on how to modify status bar icons on U11 Oreo?
Click to expand...
Click to collapse
my method does not yet work on Oreo as apktool needs to be updated to modify & compile SystemUI

Categories

Resources