Tutorial | Creating Your Own Layout.xml! 240*320 phones
#154
Posted 22 November 2008 - 09:37 PM
I load;

I get;

I think;

I wonder;
Where the hell Alarm is going?
I need;
Answers/solutions/suggestions
maybe;

but then;
I need another calculation than the one provided by Photographer.
I edited;
I opened up W595 layout and changed it using LayoutGenerator, I moved all the times to the middle side by side but the only item showing up is the time..
Edit:
<attr value="119"/> <attr value="238"/> <attr value="7"/> <attr value="31"/> <attr value="5"/> <!-- Time --> <attr value="224"/> <attr value="128"/> <attr value="218"/> <attr value="242"/> <attr value="5"/> <!-- Date --> <attr value="4"/> <attr value="236"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> <!-- Timer --> <attr value="240"/> <attr value="68"/> <attr value="1"/> <attr value="24"/> <attr value="5"/> <!-- Alarm -->
Gives me:

Another thing which got me thinking; the original layout for my W595 looks like this
<attr value="4"/> <attr value="236"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> <!-- Time --> <attr value="4"/> <attr value="236"/> <attr value="238"/> <attr value="262"/> <attr value="5"/> <!-- Date --> <attr value="4"/> <attr value="236"/> <attr value="210"/> <attr value="234"/> <attr value="5"/> <!-- Timer --> <attr value="4"/> <attr value="236"/> <attr value="238"/> <attr value="262"/> <attr value="5"/> <!-- Alarm -->
The items 'Time' & 'Timer' have same values.
The items 'Date & Alarm' have same values.
;
This post has been edited by Mr. Thunderbird: 23 November 2008 - 03:55 AM
#155
Posted 23 November 2008 - 03:59 AM
Quote
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 (!!).
X1 is the coordinate for the most left pixel of the box, starting counting from the left 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 (!!).
Soo, it's Element.Location = new Point(X1, 24+Y1);
After editing this, and fixing some other bugs it finally works, screenshot: Click here
The items with an icon are left-arranged.
The items without an icon are right-arranged.
Code of the layout_main.xml used in the screenshot:
<attr value="71"/><attr value="186"/><attr value="106"/><attr value="128"/><attr value="1"/><!--Time-->
<attr value="71"/><attr value="186"/><attr value="128"/><attr value="154"/><attr value="2"/><!-- Date -->
<attr value="40"/><attr value="236"/><attr value="210"/><attr value="234"/><attr value="3"/><!--Timer-->
<attr value="71"/><attr value="186"/><attr value="154"/><attr value="190"/><attr value="4"/><!--Alarm-->
The last attribute doesn't really change anything as I can see. But maybe I'm wrong
LayoutGenerator v0.3 is up.
Should be able to load all layout files now. (DB2020/DB3150) Except if you remove the comments on the elements line!
Gotta go sleep now
Attached File(s)
-
v0.3.rar (225K)
Number of downloads: 96
This post has been edited by Mr. Thunderbird: 23 November 2008 - 04:09 AM
#156
Posted 23 November 2008 - 11:26 AM
#159
Posted 27 November 2008 - 11:53 PM
i have one question, i have a w910i and i used what i have learned in this tuturial and increase the nunbers in the clock on sleep mode, but because i have number so big the message symbol that should appear on the right of the clock doen's show... is possible to move that symbol to under the clock?
thanks..
#160
Posted 29 November 2008 - 11:10 AM
can someone edit this layout (remove operator n scrool) and move time&date under the battery, pleasee...
and the softkey position didn't suitable
Attached File(s)
-
LAYOUT.rar (3K)
Number of downloads: 1 -
Untitled_1_copy.png (4.44K)
Number of downloads: 28
This post has been edited by H_rY: 29 November 2008 - 11:11 AM
#162
Posted 29 November 2008 - 07:08 PM
uhcord, on 2008-11-27 03:04, said:
It will save the alarm adjustments, but the time and date are unchanged.
Both screenshots are after saving.
I know, It uses a terrible way to edit the xml files... Your Time/Date/Alarm lines MUST match;
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
As you see, after the first values, there MUST be three spaces, then a space between each value, and the comment with the item name MUST be there in order to work.
This post has been edited by Mr. Thunderbird: 29 November 2008 - 07:08 PM
#163
Posted 29 November 2008 - 07:51 PM
Mr. Thunderbird, on 2008-11-29 19:08, said:
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
As you see, after the first values, there MUST be three spaces, then a space between each value, and the comment with the item name MUST be there in order to work.
Right.
Is the provided base xml (S500_W580_K790_K800_K810_K818.xml) not in the correct format, or did I go about it the wrong way?
Loading either of the base xml layouts, provided in v.02 and v.03 layouts folder, into v.02 results in it spitting out the correct coordinates.
Doing the same for v.03, it results in the problem I described above - The alarm being moved, and the time and date not.
I tried not loading a file for v.03, and saving it, and it still does not output the correct xml, only the alarm is changed.
Doing the same for v.02 (not loading a file, and then just saving) results in a correct xml.
I tried ever mix I could, other than saving it as something besides w580. I'll go see what happens when I select "ull" in .v03. Not sure if that is even meant for phones that are 2020, I'll re-read your post.
This post has been edited by uhcord: 29 November 2008 - 07:56 PM
#164
Posted 29 November 2008 - 08:00 PM
uhcord, on 2008-11-29 20:51, said:
True; It will load in v0.2 as v0.2 uses single-spaced layout lines between the first values.
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
In v0.3 it uses triple spacing;
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
I will find a better way to find the right values to change, this is just temporary.
Editing the W580_xxx.xml file in the default layout folder and giving it triple-spacing will work.
Do not use v0.2; it uses incorrect coordinates values.
The ULL is for UserLoadedLayout; It will still seek after the triple spacing in the file you load.
This post has been edited by Mr. Thunderbird: 29 November 2008 - 08:01 PM
#165
Posted 29 November 2008 - 11:41 PM
Mr. Thunderbird, on 2008-11-29 20:00, said:
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
In v0.3 it uses triple spacing;
<attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <attr value="XXX"/> <!-- ITEM -->
I will find a better way to find the right values to change, this is just temporary.
Editing the W580_xxx.xml file in the default layout folder and giving it triple-spacing will work.
Do not use v0.2; it uses incorrect coordinates values.
The ULL is for UserLoadedLayout; It will still seek after the triple spacing in the file you load.
Ah, yes that does the trick. I hadn't realized when it saved, it used the corresponding xml in the layouts folder (hah, Silly me - why else would they be there?) to create the layout.xml. Sorry about that.
Great program. I look forward to future versions. =)
#166
Posted 29 November 2008 - 11:52 PM
uhcord, on 2008-11-30 00:41, said:
Great program. I look forward to future versions. =)
You can actually take another pre-configuret layout.xml, name it PHONEMODEL.xml, put it in the layouts folder and then you can select that phone from the box.
I've been busy with work and school so haven't been able to work on it; a G2 is on the way though; a bit newer UI, I have one problem though, my W595 won't accept statusbar changes, so I need someone else to test it
#167
Posted 30 November 2008 - 01:13 AM
Good stuff!!
#168
Posted 30 November 2008 - 03:08 AM
If everything goes well I'll be finished with v0.4 tomorrow. (or today)
Changes will be bugfixes (also the one described above; I've found a better solution for replacing values).
This post has been edited by Mr. Thunderbird: 30 November 2008 - 03:10 AM
#169
Posted 30 November 2008 - 01:49 PM
SE-NSE
#170
Posted 30 November 2008 - 02:29 PM
I'm here to request to you but trying I found how to do!!

Sign In
Register
Help
Bookmark
Del.icio.us
Digg
Email
Facebook
Google
Mixx
Reddit
StumbleUpon




MultiQuote

