Anda di halaman 1dari 3

HOW TO CHANGE ALCATEL 918N STOCK MMS APP FONT SIZE AND COLOR

written by Adonis Florida

This tutorial will be a lot easier if you already: know how to decompile and recompile APK files. have basic knowledge in hex color code. NOTE: It is recommended to use Notepad++ to open and edit .xml files.

Download link: http://adf.ly/4097220/notepad CHANGING COLOR BASICS


Colors have an equivalent 6-digit hex code.
Sample: android:textColor="#ff000000"

In the example above, the first 2 characters after the # sign (ff) is the colors transparency and the remaining 6 characters is the equivalent hex color code for black (000000). Basic transparency (00 -> 100% transparency, 3f -> 75% transparency, 7f -> 50% transparency, bf -> 25% transparency) So: #00000000 - black with 100% transparency #3F000000 - black with 75% transparency #7F000000 - black with 50% transparency #BF000000 - black with 25% transparency

CHANGING FONT SIZE BASICS


You can change the text size by changing the dip number value of the code below. The higher the number, the larger the text size.
android:textSize="12.0dip"

So whats in this tutorial? Youll be shown what particular .xml 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 mms app force closes.

So lets go kick some xml ass!!!

MESSAGE THREAD COLORS


message_list_item.xml
\res\layout\

Line 9 (message text color and size)


<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0dip" android:textColor="#ffffffff" android:autoLink="all" android:linksClickable="false" android:layout_gravity="left" android:id="@id/text_view" android:paddingTop="5.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />

Line 12 (message timestamp color and size)


<TextView android:textAppearance="?android:textAppearanceSmall"

android:textSize="12.0dip" android:textColor="#ffffffff"
android:linksClickable="false" android:layout_gravity="right" android:id="@id/timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" android:layout_alignParentRight="true" />

Line 20 (message sim status color and size)


<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="12.0dip" android:textColor="#ffffffff" android:linksClickable="false" android:layout_gravity="right" android:id="@id/sim_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8.0dip" android:layout_marginBottom="8.0dip" android:layout_alignParentRight="true" />

colors.xml
\res\values\

Timestamp color
<color name="timestamp_color">#bfffffff</color>

Sim info color


<color name="siminfo_color">#ffffffff</color>

Continued next page

CONVERSATION LIST ITEM COLORS


conversation_list_item.xml
\res\layout Line 6 (contact name) <TextView android:textAppearance="?android:textAppearanceMediumInverse" android:textColor="#ff33b5e5" android:ellipsize="marquee" android:id="@id/from" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="7.0dip" android:layout_marginTop="6.0dip" android:layout_marginRight="5.0dip" android:singleLine="true" android:layout_toLeftOf="@id/presence" android:layout_toRightOf="@id/avatar" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" /> Line 7 (date received) <TextView android:textAppearance="?android:textAppearanceSmallInverse" android:textColor="#ff0099cc" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="2.0dip" android:layout_marginBottom="10.0dip" android:singleLine="true" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />

Line 10 (subject) <TextView android:textAppearance="?android:textAppearanceSmallInverse" android:textColor="#fff5f5f5" android:ellipsize="end" android:id="@id/subject" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="7.0dip" android:layout_marginBottom="10.0dip" android:singleLine="true" android:layout_toLeftOf="@id/date" android:layout_toRightOf="@id/avatar" android:layout_alignParentBottom="true" android:layout_alignWithParentIfMissing="true" />

Dont forget to say thanks if this tutorial helped you.