Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Rajeev

24th June 2014, 01:55 PM   |  #1  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,478
 
8,576 posts
Join Date:Joined: Nov 2012
Donate to Me
More


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
Last edited by Rajeev; 7th August 2014 at 01:55 PM.
The Following 27 Users Say Thank You to Rajeev For This Useful Post: [ View ]
24th June 2014, 02:35 PM   |  #2  
Pandemic's Avatar
Senior Member
Flag MePpEl
Thanks Meter: 12,179
 
16,057 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Awesome and good tut bro @Rajeev ^^
Btw check your inbox

Send from my XZ With My Own Personal Modified MoonWalker SuperB !
The Following User Says Thank You to Pandemic For This Useful Post: [ View ]
24th June 2014, 04:03 PM   |  #3  
alinolaw71's Avatar
Senior Member
Flag sari
Thanks Meter: 950
 
949 posts
Join Date:Joined: Jan 2013
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.

.
24th June 2014, 04:37 PM   |  #4  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,478
 
8,576 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by alinolaw71

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 😃
The Following User Says Thank You to Rajeev For This Useful Post: [ View ]
24th June 2014, 06:04 PM   |  #5  
Hamidreza2010's Avatar
Senior Member
Thanks Meter: 197
 
607 posts
Join Date:Joined: Jan 2013
More
hi
thanks a lot bro
i will try it
thanks
24th June 2014, 06:46 PM   |  #6  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,478
 
8,576 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by hamidreza2010

hi
thanks a lot bro
i will try it
thanks

Will Complete The Tutorial Tomorrow...
The Following User Says Thank You to Rajeev For This Useful Post: [ View ]
24th June 2014, 07:47 PM   |  #7  
alinolaw71's Avatar
Senior Member
Flag sari
Thanks Meter: 950
 
949 posts
Join Date:Joined: Jan 2013
Quote:
Originally Posted by Rajeev

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.

.
24th June 2014, 08:20 PM   |  #8  
Hamidreza2010's Avatar
Senior Member
Thanks Meter: 197
 
607 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Rajeev

Will Complete The Tutorial Tomorrow...

ok
its good
24th June 2014, 09:39 PM   |  #9  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,478
 
8,576 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by hamidreza2010

hi
thanks a lot bro
i will try it
thanks

There Is A Button Called Thanks...
The Following 4 Users Say Thank You to Rajeev For This Useful Post: [ View ]
24th June 2014, 10:51 PM   |  #10  
Hamidreza2010's Avatar
Senior Member
Thanks Meter: 197
 
607 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Rajeev

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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes