Heres how we modify the layout.xml
1. open the layout.xml in notepad++.
2. As you can see we have line no. at the leftside of notepad++ which is very important for us to easily identify lines to be change or moded.
3. Key lines:
- Line 48: scrollbars, command line: <sett name="ScrollBarMode" value="2"/>
- line 455: Operator Logo font size, command line: <attr value="FontE_20R"/>
- line 460: Date/Time font size, command line: <attr value="FontE_16R"/>
- line 468: Operator Logo coordinates, command line: <attr value="2"/> <attr value="174"/> <attr value="5"/> <attr value="26"/> <attr value="10"/>
- line 479: Time coordinates, command line: <attr value="82"/> <attr value="173"/> <attr value="134"/> <attr value="152"/> <attr value="5"/>
- line 480: Date coordinates, command line: <attr value="62"/> <attr value="173"/> <attr value="155"/> <attr value="176"/> <attr value="5"/>
- line 482: Alarm coordinates, command line: <attr value="3"/> <attr value="90"/> <attr value="155"/> <attr value="176"/> <attr value="5"/>
4. Each coordinate on the command line is designated by <!-- Text fields (x1, x2, y1, y2) -->
example: line 468 (operator logo coordinates) will be <attr value="x1"/> <attr value="x2"/> <attr value="y1"/> <attr value="y2"/> <attr value="10"/>
5. The full screen of our phone is 176x220 pixels. meaning x1=0 (left most pixel, x2=176 (right most pixel), y1=0 (top most pixel), y2=220 (buttom pixels).
with this information we can now adjust coordinates of the Standby text feilds just change values accordingly.
6. Take note that when adjusting text feilds, be sure to keep the width and height according to font size and text lenght, otherwise your text will be cropped.
ex. line 468 (operator logo coordinates), width is x2-x1=172, and height is y2-y1=21... height must be greater than font size (where original font size is 20) and width is 172 pixels (max is 176, max width of phone screen)
7. After determining the desired coordinates you must
subtract 16 to the y1 & y2 coordinates. this value was set by SE... (don't ask me why). Default operator logo coordinates are x1=2, x2=174, y1=5, y2=26.
ex. on my custom layout.xml I cahange the coordinates to x1=0, x2=68, y1=155, y2=176. (see my post above). and as you can see it is just located above the left softkey "Calls".
*img214.imageshack.us/img214/3213/phonescreenrn0.th.png
8. Fonts.. line 445: operator logo font size...
<attr value="FontE_20R"/>. 20 designates the font size & R means Regular! In my custom layout it is 14R...
Note: smallest readable font is 12R... but looks very crappy! so i suggest 14 to be minimum... to make it BOLD replace R to B!
9. Line48: Scrollbars:
<sett name="ScrollBarMode" value="2"/> set value to 0 to deactivate. Note: most of the scrollbars will be gone... not all!... this is to be used if you are using a diffenrt menu.ml (the DesktopFullScreen Mode)...
Ok I think thats it... please check if it is clear...