Help - Search - Members - Calendar
Full Version: C901 Large Clock Position And Layout.xml
SE-NSE Forums > SE Firmware > Customising Firmware/UI > Graphics / Graphical Modding
Sam Lowry
In "Settings -> Display -> Clock SIze" I can set "Large Clock".
In this mode the clock overlaps with Alarm and Date labels.
How to tweak layout_main.xml in order to shift the "Large Clock" few pixels up?
Kaosblade
Use this to edit your layout_main.xml which is in TPA > SYSTEM > LAYOUT.

SELE - Sony Ericsson Layout Editor by codeclaw. wink.gif Fairly easy.
Sam Lowry
I've tried this but there seems to be an issue, perhaps specific to C901 or DB3210.
I can't open the layout file. Here is a snippet of SELE log:
[12:12:47:46] +++++++++++++++++++++++++++
[12:12:47:46] Layout loaded in 171 milliseconds.
[12:12:47:46] Error while loading layout, unsupported/corrupt layout file
[12:12:47:78] Error in module [bu_load_Click]. Error message is as follows:
[12:12:47:78] Index was outside the bounds of the array.
[12:12:47:78] Source:
[12:12:47:78] PureResources

I got this error on NON-MODIFIED layout_main.xml.

"Sony Ericsson Layout Editor" is a really convenient application (thanks to codeclaw) but I do prefer manual xml tweaking. So, any low level info concerning my question will be appreciated!
Kaosblade
Try posting this issue on the Codeclaw support forums, or PM one of the codeclaw team. wink.gif
Sam Lowry
QUOTE (Kaosblade @ 2009-10-18 19:11) *
Try posting this issue on the Codeclaw support forums, or PM one of the codeclaw team. wink.gif

This appears to be a known issue as reported on CodeClaw's support forum. A new version is under development.
Sam Lowry
QUOTE (Sam Lowry @ 2009-10-18 08:00) *
In "Settings -> Display -> Clock SIze" I can set "Large Clock".
In this mode the clock overlaps with Alarm and Date labels.
How to tweak layout_main.xml in order to shift the "Large Clock" few pixels up?


I found the answer. For anyone who is interested:
layout_main.xml, line 571:

Old value:
<attr value="0"/> <attr value="240"/> <attr value="177"/> <attr value="277"/> <attr value="0"/> <!-- L 24h time -->

New value:
<attr value="0"/> <attr value="240"/> <attr value="138"/> <attr value="238"/> <attr value="0"/> <!-- L 24h time -->

idumbakumar
those are all co-ordinates X1,X2 and Y1,Y2
like a square box.
and the maximum screen resolution is 240x320
the values cannot exceed 240 and 320. ya it can but the element will go out the screen.
u can use -ve values as well.
in order to fit the elements into the position we can use the exceeded or -ve values.
Sam Lowry
QUOTE (idumbakumar @ 2009-10-20 08:42) *
those are all co-ordinates X1,X2 and Y1,Y2
like a square box.
and the maximum screen resolution is 240x320
the values cannot exceed 240 and 320. ya it can but the element will go out the screen.
u can use -ve values as well.
in order to fit the elements into the position we can use the exceeded or -ve values.


What is "-ve"?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.