SE-NSE Forums:

Jump to content

  • (19 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

Tutorial | Creating Your Own Layout.xml! 240*320 phones Rate Topic: ****- 2 Votes

#1 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 28 May 2008 - 03:09 PM

Creating your own layout.xml


This tutorial recuires some insight in geometerics ;)

We're going to create our own layout.xml!

Note: Snowiffic has released an awesome and easy to use layout editor called SELE (Sony Ericsson Layouts Editor) take a look in THIS topic

Example:
Posted Image

Requires:
1. Original layout.xml for your phone
2. xml editor (notepad or wordpad will do the job!)
3. Creativity!

Tutorial:
1. Open your layout.xml in notepad.
2. Search for "StatusIndication" (without quotes)
3. Scroll down a little and you will see a table like this:
<object name="StatusIndication">
<settings>
<sett name="RowHeight" value="0"/>
<sett name="TopOffset" value="0"/>
<sett name="TitleHeight" value="0"/>
<sett name="TitleTopOffset" value="0"/>
<sett name="TitleMode" value="1"/>
<sett name="OverlayStyle" value="0"/>
<sett name="YPos" value="24"/> 
<sett name="Height" value="266"/>
</settings>
<attributes count="91">

<attr value="FontE_24R"/> 
<attr value="FontE_20R"/> 
<attr value="FontE_100R"/> 
<attr value="FontE_75R"/> 
<attr value="FontE_40R"/> 
<attr value="FontE_20R"/> 

<attr value="6"/> 
<attr value="4"/> 
<attr value="4"/> 
<attr value="4"/> 

<attr value="16"/> 
<attr value="1"/> <attr value="239"/> <attr value="5"/> <attr value="32"/> <attr value="10"/> 
<attr value="1"/> <attr value="239"/> <attr value="34"/> <attr value="56"/> <attr value="10"/> 
<attr value="1"/> <attr value="239"/> <attr value="34"/> <attr value="80"/> <attr value="10"/> 
<attr value="1"/> <attr value="239"/> <attr value="55"/> <attr value="80"/> <attr value="10"/> 
<attr value="1"/> <attr value="239"/> <attr value="82"/> <attr value="104"/> <attr value="10"/> 
<attr value="4"/> <attr value="236"/> <attr value="34"/> <attr value="184"/> <attr value="4"/> 
<attr value="4"/> <attr value="236"/> <attr value="58"/> <attr value="184"/> <attr value="4"/> 
<attr value="4"/> <attr value="236"/> <attr value="82"/> <attr value="184"/> <attr value="4"/> 
<attr value="4"/> <attr value="236"/> <attr value="106"/> <attr value="184"/> <attr value="4"/> 
<attr value="0"/> <attr value="173"/> <attr value="205"/> <attr value="281"/> <attr value="0"/> 
<attr value="0"/> <attr value="240"/> <attr value="181"/> <attr value="281"/> <attr value="0"/> 
<attr value="121"/> <attr value="236"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> 
<attr value="116"/> <attr value="236"/> <attr value="238"/> <attr value="262"/> <attr value="5"/> 
<attr value="4"/> <attr value="116"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> 
<attr value="4"/> <attr value="116"/> <attr value="238"/> <attr value="262"/> <attr value="5"/> 
<attr value="174"/> <attr value="240"/> <attr value="211"/> <attr value="251"/> <attr value="0"/> 
</attributes>
</object>


We're only going to need the values starting at
<attr value="1"/>   <attr value="239"/> <attr value="5"/>   <attr value="32"/>  <attr value="10"/> <!-- 0 -->

and down.
At the end of each line you see this indicates the object the values are for.
The first attr value is called X1, the second one X2, the third one Y1 and the last one Y2. I'm not sure about the 5th value, so don't change it.
All attr values stand for coordinates for the start of the box the onject is placed in. In this example I'm going to move the time object!
The string for time says:
<attr value="121"/> <attr value="236"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> <!-- Time -->


X1 is the coordinate for the most left pixel of the box, starting counting from the right bound of the screen.
X2 is the coordinate for the most right pixel of the box, starting counting from the left bound of the screen.
Y1 is the coordinate for the most upper pixel of the box, starting counting from under the statusbar (!!).
Y2 is the coordinate for the most low pixel of the box, starting counting from under the statusbar (!!).

The statusbar is sized 240x24 pixels, like this:
Posted Image

So, when we want to track down "Time" we do this:
Posted Image

The white box is now the box where the object "time" can appear.
A little calculation will show us that the box measures are:
240-236=4
X2-4 => 121-4=117
Y2-Y1 => 234-210=24

Measure => 117x24

Move the box
If we want to move this box, we will have to change the values!
For example, I want the time to be at the total right top!
AH! That will mean that x2 can stay the same, x1 aswell! Y2 and Y1 will have to be changed.

In the total top => Y1=1 and Y2 will be 24 pixels more than Y1 means Y2=1+24=25
Wohoo! Let's change the values! Change the values and upload it to your phone in tps/system/layout
USE SEARCH FOR A TUTORIAL FOR UPLOADING (XS++ and JDFlasher can do that job)

Some more examples:
Posted Image



Removing the operator logo
One of the most annoying objects on the standby screen will probably be the operator logo. Don't worry! We can remove it :D . Its very easy.

Find this line in your layout.xml:
<attr value="1"/>   <attr value="239"/> <attr value="5"/>   <attr value="[b]32[/b]"/>  <attr value="10"/> <!-- 0 -->

It's in the same region, under " <object name="StatusIndication"> "
Now change the value 32 to -10 .
There you go! No more operator logo!
You can test your new layout here:
http://mike.thedt.net/temp/layout.php


Removing the scrollbars
(Attention! Removes every scrollbar in your phone.)
This one can be very usefull aswell :) After doing this every scrollbar in the whole phone will be gone (so in fullscreen menus aswell)

Search for this line:
<attr value="1"/>   <attr value="239"/> <attr value="34"/>  <attr value="56"/>  <attr value="10"/> <!-- 1 -->

(right under the line we just edited to remove the operator logo :) )
Change the value 56 to -10 and say bye bye to the scrollbars ;)


Changing fontsizes
Another funky thing we can change are the fontsizes! The in the example used font for the big clock is FontE_40R.
The fonts for the clock, alarm, date and so on are set in the first part of the section we just edited (under "SatusIndication") and it looks like this:
	<!-- Main display text attr -->
	<attr value="FontE_24R"/>  <!-- Large font -->
	<attr value="FontE_20R"/>  <!-- Small font -->
	<attr value="FontE_100R"/> <!-- Large 24h font -->
	<attr value="FontE_75R"/>  <!-- Large 12h font -->
	<attr value="FontE_40R"/>  <!-- Large 12h AM/PM font -->
	<attr value="FontE_20R"/>  <!-- Time/Date font -->


As you might have figured FontE_100R is the biggest font, bigger does not fit on the screen ;)
Basically FontE_1R should be the smalles font, but FontE_8R is about the smallest fontsize that is still readable.
In my example above I used the font size FontE_40R for the big clock in the upper right corner of my display.
You can set any value for the fontsize you want :)

Extra:
Fontsize for the softkeys.

The fontsize for the softkeys is set in the object "Softkeys" in layout.xml and it looks like this in default mode:
<object name="SoftKeys">
  <settings>
	<sett name="FontType" value="FontE_24R"/>
	<sett name="RowHeight" value="30"/>
	<sett name="TopOffset" value="2"/>
	<sett name="TitleHeight" value="0"/>
	<sett name="TitleTopOffset" value="0"/>
	<sett name="TitleMode" value="1"/>
	<sett name="OverlayStyle" value="0"/>
	<sett name="YPos" value="290"/>
	<sett name="Height" value="30"/>
	<sett name="YRelatively" value="0"/>
  </settings>
  <settings orientation="1">
	<sett name="FontType" value="FontE_24R"/>
	<sett name="XPos" value="205"/>
	<sett name="YPos" value="0"/>
	<sett name="Width" value="115"/>
	<sett name="Height" value="240"/>
  </settings>
  <settings orientation="1" layout="1">
	<sett name="FontType" value="FontE_24R"/>
	<sett name="XPos" value="205"/>
	<sett name="YPos" value="0"/>
	<sett name="Width" value="115"/>
	<sett name="Height" value="240"/>
  </settings>
</object>



As you can see size 24 is default. I use size 15 in my own phone.
The first line sets the font size for softkeys when using your phone is portraid mode.
The second part of the object sets the size for the softkey text when viewing stuff (like pictures) in landscape mode.
Just as with the other fontsizes you can change these values. (i would recommend not smaller than 8 and not bigger than 25)

Moving the status indication icons!
(battery, signal, silent mode, 3G icon, bluetooth icon, etc.)

Moving the status indication icons works the same way as moving the time, date, and so on. Check above for how to edit the values!
<object name="StatusRow">
  <settings>
	<sett name="FontType" value="FontE_14B"/>
	<sett name="RowHeight" value="14"/>
	<sett name="TopOffset" value="0"/>
	<sett name="OverlayStyle" value="0"/>
	<sett name="YPos" value="0"/> 
	<sett name="Height" value="24"/> 
  </settings>
  <settings orientation="1">
	<sett name="Height" value="0"/> 
  </settings>
  <attributes count="71">
	<attr value="96"/>  <!-- Time [url="/products/x1"]x1[/url] -->
	<attr value="136"/> <!-- Time x2 -->
	<attr value="7"/>   <!-- Time y1 -->
	<attr value="23"/>  <!-- Time y2 -->
	<!-- Status icon (x1, x2, y1, y2, align, field) -->
	<attr value="11"/> <!-- Nbr icons -->
	<attr value="0"/>   <attr value="240"/> <attr value="0"/>   <attr value="320"/> <attr value="1"/>  <attr value="0"/>
	<attr value="71"/>  <attr value="96"/>  <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- 3G -->
	<attr value="214"/>  <attr value="239"/>  <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- NoSound -->
	<attr value="188"/>  <attr value="214"/> <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- BT -->
	<attr value="162"/> <attr value="188"/> <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- Java -->
	<attr value="136"/> <attr value="162"/> <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- MP/Radio -->
	<attr value="110"/> <attr value="136"/> <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="1"/>  <!-- Msg -->
	<attr value="1"/>   <attr value="31"/>  <attr value="1"/>   <attr value="23"/>  <attr value="18"/> <attr value="2"/>  <!-- Signal -->
	<attr value="32"/> <attr value="70"/> <attr value="1"/>   <attr value="23"/>  <attr value="5"/>  <attr value="3"/>  <!-- Batt icon -->
	<attr value="32"/> <attr value="70"/> <attr value="1"/>   <attr value="23"/>  <attr value="1"/>  <attr value="4"/>  <!-- Charge -->
	<attr value="0"/>   <attr value="240"/> <attr value="0"/>   <attr value="25"/>  <attr value="1"/>  <attr value="5"/>  <!--  -->
  </attributes>
</object>


Changelog:
28-05-2008: Initial release
31-05-2008: Added original layout.xml for w580i, s500i, w850i, K790, K800, K810.
01-06-2008: Added fonts description
31-08-2008: Added status bar icons tutorial
02-12-2008: Added Mr. T's layout tool v0.4
07-12-2008: Updated SELG to G3_v0.5 - MrT
18-01-2009: Removed SELG link, added SELE link at the header - MrT
01-08-2009 : Renamed MrThunderbird to Snowiffic :p - SWi
That's it for now!

Attached File(s)


This post has been edited by Snowiffic: 01 August 2009 - 05:13 PM

0

#2 User is offline   amrinal Icon

  • SVP
  • Icon
  • View gallery
  • Group: VIP
  • Posts: 1,096
  • Joined: 18-October 07
  • Gender:Male
  • Location:Jakarta, Indonesia
  • Mobile:K810i Inside, So Far away from the Original

Posted 28 May 2008 - 03:29 PM

useful tutorial, dude....
thx... wanna try my own layout :cool: :good:

This post has been edited by Mr. Thunderbird: 26 August 2008 - 06:33 PM
Reason for edit: Removed Quote

SE, the way i am... <So Far awaw from the original> (-_-) .v,,
Great & Useful Patches | elves installed
0

#3 User is offline   amrinal Icon

  • SVP
  • Icon
  • View gallery
  • Group: VIP
  • Posts: 1,096
  • Joined: 18-October 07
  • Gender:Male
  • Location:Jakarta, Indonesia
  • Mobile:K810i Inside, So Far away from the Original

Posted 28 May 2008 - 04:24 PM

:p :lol:
Posted Image
	<attr value="121"/> <attr value="236"/> <attr value="5"/>   <attr value="32"/> <attr value="5"/> <!-- Time -->  
	<attr value="116"/> <attr value="236"/> <attr value="10"/>   <attr value="72"/> <attr value="5"/> <!-- Date -->
	<attr value="4"/>   <attr value="116"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> <!-- Timer -->
	<attr value="4"/>   <attr value="116"/> <attr value="238"/> <attr value="262"/> <attr value="5"/> <!-- Alarm -->


could u fix it.. and i want operator logo appear and change location
bigger date,
alarm move to right,
time same to date row
:confused:

This post has been edited by amrinal: 28 May 2008 - 04:26 PM

SE, the way i am... <So Far awaw from the original> (-_-) .v,,
Great & Useful Patches | elves installed
0

#4 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 29 May 2008 - 09:13 AM

The date fonts can be set elsewhere in the layout.xml
0

#5 User is offline   steadyontherem8 Icon

  • You'll Never Walk Alone
  • Icon
  • Group: VIP
  • Posts: 3,160
  • Joined: 28-December 07
  • Gender:Male
  • Location:London
  • Mobile:Sony Ericsson K800i R8BF003
  • Tutorials Submitted:2

Posted 29 May 2008 - 02:00 PM

Yay, now I can edit my layout.xml without screwing it up :D
RIP The One.
http://forums.se-nse...showtopic=35214 (Obviously topic was deleted)
0

#6 User is offline   blunden Icon

  • No Se-nse
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 24-May 08
  • Location:Sweden
  • Mobile:K800i @ K810i R8BA024 Xenon XMB Swedish menu + theme

Posted 29 May 2008 - 09:27 PM

Could you please tell me what lines are responsible for the scrollbar in the menu (on the k810)?

I've seen multiple people change it but they also include a bunch of stuff I don't want making a comparison harder. Also, since I don't know technique to remove it (do you just move it off the screen or do you remove it fully etc.) that makes it even harder. Great tutorial btw.
0

#7 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 29 May 2008 - 09:28 PM

I think you would like to have this one moved.

So I'll have the honor doing it..

Moved
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#8 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 10:54 AM

Wohoo :D thx. Im still improving it, more images and examples coming after lunch :)
0

#9 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 30 May 2008 - 10:59 AM

Great! :good:

You will have your "Tutorials Submitted" soon, when Scots comes online. :)
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#10 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 12:24 PM

*Added guide to remove operator logo's and scrollbars*

oooh that would be sweet!

I have an other tutorial here on the forum, it's called "How to create a flashh lite clock" can it be moved too?

This is the url :) : http://forums.se-nse...showtopic=14056

Photographer

This post has been edited by Photographer: 30 May 2008 - 12:24 PM

0

#11 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 30 May 2008 - 12:28 PM

Your other guide has been moved.
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#12 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 12:33 PM

Thanks :)

*I'll attach all layouts of 240*320 phones in the first post soon.*
0

#13 User is offline   Kolle Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 261
  • Joined: 29-April 08
  • Gender:Male
  • Location:Germany
  • Mobile:V630@W660 & K770
  • Tutorials Submitted:1

Posted 30 May 2008 - 01:11 PM

hey, is it possible to make the small clock disappear? so that i only have a clock when i select the big clock in my phone settings...

can i do it the same way like making the operator logo disappear? but wich line is it :confused:
Posted Image
0

#14 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 01:23 PM

Yes you can, make the 4th value -10 at the line saying time.

(doh ^^ so easy. se even said wich line indicates wich object)
0

#15 User is offline   henz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 228
  • Joined: 21-July 07
  • Gender:Male
  • Location:KSA/PINAS
  • Mobile:W910 sTArting to "Mod Again"

Posted 30 May 2008 - 03:05 PM

@ photographer,

i just want to put the "large time" in the middle, in which line in layout i will modify?

OT:

can you upload that smilies pictures please.. (or theme)
0

#16 User is offline   Tasiek24 Icon

  • Padawan
  • Pip
  • View gallery
  • Group: Members
  • Posts: 39
  • Joined: 05-March 07
  • Gender:Male
  • Mobile:W850i [R1KG001]

Posted 30 May 2008 - 03:09 PM

How to increase the letter of clock ??
Posted Image
Posted Image
Posted Image
0

#17 User is offline   RobvB Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 24
  • Joined: 28-May 08
  • Gender:Male
  • Location:Veldhoven, Noord-Brabant, The Netherlands, Europe, Planet Earth, The Universe, Who knows what more there is?
  • Mobile:w580i (R8BA024)

Posted 30 May 2008 - 03:18 PM

Just wondering, is there any way you are allowed to have a large clock and a small clock? I'd love that so much.
Status:
The holy search begins!
I'm on my journey to find myself a black/orange housing for my w580i.
0

#18 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 03:21 PM

@ Tasiek24: yes it's possible! I'm working on the fonts part, there are about 5 diffrent fonts you can choose. I'll add a guide on that tomorrow.

@ RobvB: I'm not sure about that...

[dutch]Heej heej, welkom op se-nse :) [/dutch]

here is the background:
Attached File  smiley.jpg (78.73K)
Number of downloads: 233

This post has been edited by Photographer: 30 May 2008 - 03:24 PM

0

#19 User is offline   RobvB Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 24
  • Joined: 28-May 08
  • Gender:Male
  • Location:Veldhoven, Noord-Brabant, The Netherlands, Europe, Planet Earth, The Universe, Who knows what more there is?
  • Mobile:w580i (R8BA024)

Posted 30 May 2008 - 03:26 PM

Hmm I might mess around with the code by myself to try if it's possible. Thanks for the great tutorial!
[dutch]Dankje ;) Weet je toevallig waar ik ergens in Nederland een black/orange housing kan krijgen?[/dutch]
Status:
The holy search begins!
I'm on my journey to find myself a black/orange housing for my w580i.
0

SE-NSE

#20 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 30 May 2008 - 03:35 PM

[dutch]
Ik heb geen idee... op marktplaats vind je alleen maar goedkope replica's... van die glimmende. op ebay zijn ze wel goed te vinden, deze bijvoorbeeld: http://cgi.ebay.com/...1QQcmdZViewItem
[/dutch]

Told him where to get the housing ^^
0

  • (19 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

2 User(s) are reading this topic
1 members, 1 guests, 0 anonymous users

  1. toxic9002