You are on page 1of 3

HOW TO REMOVE CONTACT AVATAR FRAME AND CHANGE CONTACT AVATAR SIZE

written by Adonis Florida

This tutorial will be a lot easier if you already know how to decompile and recompile APK files. I have a couple of video tutorials here that will give you a heads up in android theming using Tickle My Android (TMA) by Ticklefish. You have to click HD in the video player though to view the vid in high definition: Decompiling APK file: http://adf.ly/4097220/decompile Modifying battery icon: http://adf.ly/4097220/batteryicon Changing boot logo: http://adf.ly/4097220/boot-logo

NOTE: It is recommended to use Notepad++ to open and edit .xml files.

Download link: http://adf.ly/4097220/notepad


You need to decompile framework-res.apk in order to remove the contact avatar frame and change the contact avatar size. This modification affects the contact avatars in your phones contacts as well as the contact avatar in your default messaging app. Doing this mod dramatically increases your contact avatar size making it clearer to see (whats the point of putting all those contact avatars when they are too small that you can hardly see them ).

So whats in this tutorial? Youll be shown what particular .xml and .PNG file to edit and where to find them. The Lines are references in Notepad++ so if you havent installed it yet, please do so before proceeding. The codes highlighted in yellow are the only ones that need to be edited. Leave the rest untouched otherwise youll be messing with the codes resulting to force closes.

Shall we begin? Continued next page

REMOVING THE CONTACT FRAME

quickcontact_badge_pressed.9 quickcontact_badge_unpressed.9
\res\drawable-mdpi\

DO NOT DELETE the two files above. In order to remove the contact frame properly, all you have to do is to set it TRANSPARENT. You can use Adobe Photoshop to do that. But wait! Hold your horses! There is a proper way of doing that. In order to properly set the frame to transparent, you have to delete the gray and the holo blue rectangles only (Figure 1). DO NOT DELETE the black squares on the top and both sides of the gray rectangle. Also, DO NOT DELETE the black line below it. Your PNG file should look exactly like the one in Figure 2 after editing.

Figure 1

Figure 2

Continued next page

CHANGING THE CONTACT AVATAR SIZE styles.xml


\res\values\

Line 885
<style name="Widget.QuickContactBadge" parent="@style/Widget"> <item name="background">@drawable/quickcontact_badge</item> <item name="clickable">true</item>

<item name="layout_width">50.333313dip</item> <item name="layout_height">59.0dip</item>


<item name="scaleType">fitCenter</item>

Look for the lines highlighted in yellow above and set the layout_width to 50.333313dip and also set the layout_height to 59.0dip. Note: You can actually experiment with the layout_width and layout_height values to suit your need. So thats basically it. Recompile and flash your modified framework-res.apk using CWM.

Dont forget to say thanks if this tutorial helped you.

You might also like