Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,657 Members 43,331 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] [4.1+] [UPDATE :- 24.06.2014] Changing Theme Color For Phonebook & Dialer

Tip us?
 
Rajeev
Old
(Last edited by Rajeev; 7th August 2014 at 12:55 PM.)
#1  
Rajeev's Avatar
Senior Member - OP
Thanks Meter 8,999
Posts: 7,444
Join Date: Nov 2012
Location: Chennai , I N D I A

 
DONATE TO ME
Default [TUTORIAL] [4.1+] [UPDATE :- 24.06.2014] Changing Theme Color For Phonebook & Dialer



Dear Friends

Here I Am Presenting You Another Coolest Tutorial For Changing Phonebook and Dialer Run Time Theme Color According To System Theme Change. U Don't Need To Edit Any Smali Files For This. All Are Just XML Editing Only. For This Mod U Need Only Two APKs. Phonebook and SemcPhone. This Tutorial Should Work In Android 4.1+.

So Lets Begin ...


Quote:
PHONEBOOK.apk

De Compile Phonebook.apk
Go To res/values/Styles.xml

Find These Lines

Code:
<style name="Dialpad.Digit" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_digit_text_size</item>
<item name="android:gravity">center</item>
<item name="android:includeFontPadding">false</item>
<item name="android:layout_centerVertical">true</item>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Digit" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_digit_text_size</item>
<item name="android:textColor">@color/theme_accent_color_dark</item>
<item name="android:gravity">center</item>
<item name="android:includeFontPadding">false</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">5.0</item>
<item name="android:shadowDy">5.0</item>
<item name="android:shadowRadius">5.0</item>
<item name="android:layout_centerVertical">true</item>
Find These Lines

Code:
<style name="Dialpad.Star" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_star_text_size</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:includeFontPadding">false</item>
<item name="android:layout_centerVertical">true</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Star" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_star_text_size</item>
<item name="android:textColor">@color/theme_accent_color_dark</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:includeFontPadding">false</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">5.0</item>
<item name="android:shadowDy">5.0</item>
<item name="android:shadowRadius">5.0</item>
<item name="android:layout_centerVertical">true</item>
</style>
Find These Lines

Code:
<style name="Dialpad.Pound" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_pound_text_size</item>
<item name="android:gravity">center</item>
<item name="android:includeFontPadding">false</item>
<item name="android:layout_centerVertical">true</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Pound" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_pound_text_size</item>
<item name="android:textColor">@color/theme_accent_color_dark</item>
<item name="android:gravity">center</item>
<item name="android:includeFontPadding">false</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">5.0</item>
<item name="android:shadowDy">5.0</item>
<item name="android:shadowRadius">5.0</item>
<item name="android:layout_centerVertical">true</item>
</style>
Find These Lines

Code:
<style name="Dialpad.Plus" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_plus_text_size</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Plus" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_plus_text_size</item>
<item name="android:textColor">@color/theme_accent_color</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
</style>
Find These Lines

Code:
<style name="Dialpad.Label" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_label_text_size</item>
<item name="android:includeFontPadding">false</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Label" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_label_text_size</item>
<item name="android:textColor">@color/theme_accent_color</item>
<item name="android:includeFontPadding">false</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
</style>
Find These Lines

Code:
<style name="Dialpad.Call" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_call_text_size</item>
<item name="android:textColor">@android:color/white</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Dialpad.Call" parent="@style/Dialpad">
<item name="android:textSize">@dimen/dialpad_call_text_size</item>
<item name="android:textColor">@color/theme_accent_color_dark</item>
</style>
Find These Lines

Code:
<style name="Theme.Spb" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:windowActionBar">true</item>
<item name="android:actionBarStyle">@style/SemcActionBar</item>
<item name="android:actionBarTabStyle">@style/SemcActionBarTabView</item>
<item name="android:actionBarTabBarStyle">@style/SemcActionBarTabBar</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:actionBarWidgetTheme">@style/SemcActionBarWidget</item>
<item name="android:layoutDirection">ltr</item>
<item name="com.sonyericsson.uxp:extendedLookAndFeel">true</item>
<item name="listSeparatorBoxTextViewStyle">@style/ListSeparatorBoxTextViewStyle</item>
<item name="textAppearanceExtraLargeInverse">@style/Default.TextAppearance.ExtraLarge.Inverse</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Theme.Spb" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:textColor">@color/theme_accent_color_neutral</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">3.0</item>
<item name="android:shadowDy">3.0</item>
<item name="android:shadowRadius">2.0</item>
<item name="android:windowActionBar">true</item>
<item name="android:actionBarStyle">@style/SemcActionBar</item>
<item name="android:actionBarTabStyle">@style/SemcActionBarTabView</item>
<item name="android:actionBarTabBarStyle">@style/SemcActionBarTabBar</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:actionBarWidgetTheme">@style/SemcActionBarWidget</item>
<item name="android:layoutDirection">ltr</item>
<item name="com.sonyericsson.uxp:extendedLookAndFeel">true</item>
<item name="listSeparatorBoxTextViewStyle">@style/ListSeparatorBoxTextViewStyle</item>
<item name="textAppearanceExtraLargeInverse">@style/Default.TextAppearance.ExtraLarge.Inverse</item>
</style>
Find These Lines

Code:
<style name="Theme.Default" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:windowActionBar">true</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="com.sonyericsson.uxp:extendedLookAndFeel">true</item>
<item name="listSeparatorBoxTextViewStyle">@style/ListSeparatorBoxTextViewStyle</item>
<item name="textAppearanceExtraLargeInverse">@style/Default.TextAppearance.ExtraLarge.Inverse</item>
</style>
And Add The Red Marked Lines

Code:
<style name="Theme.Default" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:textColor">@color/theme_accent_color</item>
<item name="android:shadowColor">@android:color/black</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
<item name="android:windowActionBar">true</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="com.sonyericsson.uxp:extendedLookAndFeel">true</item>
<item name="listSeparatorBoxTextViewStyle">@style/ListSeparatorBoxTextViewStyle</item>
<item name="textAppearanceExtraLargeInverse">@style/Default.TextAppearance.ExtraLarge.Inverse</item>
</style>
Done. Save and Exit From The Editor


Now Go To res/values/Colors.xml

Find This Line

Code:
<color name="theme_accent_color">@com.sonyericsson.uxp:color/somc_theme_accent_color_light</color>
And Change To This Line

Code:
<color name="theme_accent_color">@com.sonyericsson.uxp:color/semc_theme_accent_color</color>
Scroll Down To Last and Add These Lines To There

Code:
<color name="add_edit_header_background">#ffefefef</color>
<color name="theme_accent_color_neutral">@com.sonyericsson.uxp:color/somc_accent_color_neutral</color>
<color name="theme_illumination_color">@com.sonyericsson.uxp:color/semc_theme_illumination_color</color>
<color name="theme_accent_color_dark">@com.sonyericsson.uxp:color/somc_theme_accent_color_dark</color>
<color name="theme_accent_color_light">@com.sonyericsson.uxp:color/somc_theme_accent_color_light</color>
Important Note :

First Look For " <color name="add_edit_header_background">#ffefefef</color> In Ur Res/values/colors.xml. If The Line Is Already There Means Do Not Add It Again.


Done. Save and Exit From The Editor



NOTE:- THIS TUT IS INCOMPLETE. I AM CURRENTLY MAKING THE THREAD.. I DON'T HAVE A PC WITH ME. IT WILL TAKE SOME MONTHS. SO PLEASE WAIT FOR TWO OR 3 MONTHS
If You Like My Work Please Consider A Small Donation

For Donating Click Below

 
Please Do The Following:
Sign In To Your PayPal Account Page
Go To 'Send Payment'
Enter My Email ID "dipesh.febrius@gmail.com"
Option "Personal Payment" Doesn't Work For India, So Kindly Set "Online Purchases". And Check Goods or Service (Preferably Service)
Make The Payment of The Desired Amount of Donation You Want To Send.
Thank You For Your Kind Donations!
The Following 27 Users Say Thank You to Rajeev For This Useful Post: [ Click to Expand ]
 
Pandemic
Old
#2  
Pandemic's Avatar
Senior Member
Thanks Meter 11,606
Posts: 15,393
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
Awesome and good tut bro @Rajeev ^^
Btw check your inbox

Send from my XZ With My Own Personal Modified MoonWalker SuperB !



.. The True Source Of Knowledge Is Experience ..
... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V4 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following User Says Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
alinolaw71
Old
#3  
alinolaw71's Avatar
Senior Member
Thanks Meter 937
Posts: 944
Join Date: Jan 2013
Location: sari
bro u can remove this line bcs it exist in color.xml

<color name="add_edit_header_background">#ffefefef</color>


and tanx for your top work.

.
 
Rajeev
Old
#4  
Rajeev's Avatar
Senior Member - OP
Thanks Meter 8,999
Posts: 7,444
Join Date: Nov 2012
Location: Chennai , I N D I A

 
DONATE TO ME
Quote:
Originally Posted by alinolaw71 View Post
bro u can remove this line bcs it exist in color.xml

<color name="add_edit_header_background">#ffefefef</color>


and tanx for your top work.

.
Yes i know but some android version hav problem because of it 😃
If You Like My Work Please Consider A Small Donation

For Donating Click Below

 
Please Do The Following:
Sign In To Your PayPal Account Page
Go To 'Send Payment'
Enter My Email ID "dipesh.febrius@gmail.com"
Option "Personal Payment" Doesn't Work For India, So Kindly Set "Online Purchases". And Check Goods or Service (Preferably Service)
Make The Payment of The Desired Amount of Donation You Want To Send.
Thank You For Your Kind Donations!
The Following User Says Thank You to Rajeev For This Useful Post: [ Click to Expand ]
 
Hamidreza2010
Old
#5  
Hamidreza2010's Avatar
Senior Member
Thanks Meter 141
Posts: 524
Join Date: Jan 2013
hi
thanks a lot bro
i will try it
thanks
 
Rajeev
Old
#6  
Rajeev's Avatar
Senior Member - OP
Thanks Meter 8,999
Posts: 7,444
Join Date: Nov 2012
Location: Chennai , I N D I A

 
DONATE TO ME
Quote:
Originally Posted by hamidreza2010 View Post
hi
thanks a lot bro
i will try it
thanks
Will Complete The Tutorial Tomorrow...
If You Like My Work Please Consider A Small Donation

For Donating Click Below

 
Please Do The Following:
Sign In To Your PayPal Account Page
Go To 'Send Payment'
Enter My Email ID "dipesh.febrius@gmail.com"
Option "Personal Payment" Doesn't Work For India, So Kindly Set "Online Purchases". And Check Goods or Service (Preferably Service)
Make The Payment of The Desired Amount of Donation You Want To Send.
Thank You For Your Kind Donations!
The Following User Says Thank You to Rajeev For This Useful Post: [ Click to Expand ]
 
alinolaw71
Old
#7  
alinolaw71's Avatar
Senior Member
Thanks Meter 937
Posts: 944
Join Date: Jan 2013
Location: sari
Quote:
Originally Posted by Rajeev View Post
Yes i know but some android version hav problem because of it 😃


bro i do your guid but i have a problem.
when i flash themed phonebook.
phonenook icon removed of home app drawer
my means phonebook and phone icon hiding.

.
 
Hamidreza2010
Old
#8  
Hamidreza2010's Avatar
Senior Member
Thanks Meter 141
Posts: 524
Join Date: Jan 2013
Quote:
Originally Posted by Rajeev View Post
Will Complete The Tutorial Tomorrow...
ok
its good
 
Rajeev
Old
#9  
Rajeev's Avatar
Senior Member - OP
Thanks Meter 8,999
Posts: 7,444
Join Date: Nov 2012
Location: Chennai , I N D I A

 
DONATE TO ME
Quote:
Originally Posted by hamidreza2010 View Post
hi
thanks a lot bro
i will try it
thanks
There Is A Button Called Thanks...
If You Like My Work Please Consider A Small Donation

For Donating Click Below

 
Please Do The Following:
Sign In To Your PayPal Account Page
Go To 'Send Payment'
Enter My Email ID "dipesh.febrius@gmail.com"
Option "Personal Payment" Doesn't Work For India, So Kindly Set "Online Purchases". And Check Goods or Service (Preferably Service)
Make The Payment of The Desired Amount of Donation You Want To Send.
Thank You For Your Kind Donations!
The Following 4 Users Say Thank You to Rajeev For This Useful Post: [ Click to Expand ]
 
Hamidreza2010
Old
#10  
Hamidreza2010's Avatar
Senior Member
Thanks Meter 141
Posts: 524
Join Date: Jan 2013
Quote:
Originally Posted by Rajeev View Post
There Is A Button Called Thanks...
oh yes yes your right
i forgot it
done it

The Following User Says Thank You to Hamidreza2010 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes