SE-NSE Forums:

Jump to content

  • (19 Pages)
  • +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11
  • 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

#151 User is offline   Ly Icon

  • Lynott Level SE-NSE Addict
  • Icon
  • Group: Moderators
  • Posts: 5,891
  • Joined: 08-June 07
  • Gender:Male
  • Location:London
  • Mobile:iPhone 3G[S]

Posted 22 November 2008 - 08:10 PM

Wow, sweet MrT!
Posted Image
Alive and kicking: W995 W705 W910 K800 W880 W800 | Dead and sitting: W880 W850 K850 C902
0

#152 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 22 November 2008 - 09:22 PM

:)

Seriously guys, the future of the app depends on You!
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#153 User is offline   Ly Icon

  • Lynott Level SE-NSE Addict
  • Icon
  • Group: Moderators
  • Posts: 5,891
  • Joined: 08-June 07
  • Gender:Male
  • Location:London
  • Mobile:iPhone 3G[S]

Posted 22 November 2008 - 09:28 PM

Fancy adding support for A2? Like already having the layouts there?
Posted Image
Alive and kicking: W995 W705 W910 K800 W880 W800 | Dead and sitting: W880 W850 K850 C902
0

#154 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 22 November 2008 - 09:37 PM

DB3150 support will be added in the future, but theoretically it should already support DB3150, if you use "ULL"/load a DB3150 layout. Because my application scans the layout.xml you load line by line for the words "Date"/"Time"/"Alarm", if you remove the comments at the date/time/alarm the application won't load the values.

I load;
Posted Image

I get;
Posted Image

I think;
Posted Image

I wonder;
Where the hell Alarm is going?

I need;
Answers/solutions/suggestions

maybe;
Posted Image

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:
Posted Image

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.
;
Posted Image

This post has been edited by Mr. Thunderbird: 23 November 2008 - 03:55 AM

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#155 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 23 November 2008 - 03:59 AM

Quote

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 (!!).


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 :sleep:

Attached File(s)

  • Attached File  v0.3.rar (225K)
    Number of downloads: 96

This post has been edited by Mr. Thunderbird: 23 November 2008 - 04:09 AM

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#156 User is offline   photographer Icon

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

Posted 23 November 2008 - 11:26 AM

Nice work mr T :) I'm looking forward to your final release :D
0

#157 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 23 November 2008 - 12:04 PM

Working on it ;)
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#158 User is offline   uhcord Icon

  • n00b
  • Group: Members
  • Posts: 4
  • Joined: 01-November 08

Posted 27 November 2008 - 02:04 AM

View PostMr. Thunderbird, on 2008-11-23 13:04, said:

Working on it ;)


There seems to be a problem with v.3 when saving for w580

It will save the alarm adjustments, but the time and date are unchanged.

Both screenshots are after saving.

Posted Image

Posted Image
0

#159 User is offline   nitz7darko Icon

  • n00b
  • Group: Members
  • Posts: 2
  • Joined: 24-November 08

Posted 27 November 2008 - 11:53 PM

hi!
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.. :)
0

#160 User is offline   H_rY Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 29-July 08
  • Gender:Male
  • Location:INA
  • Mobile:K800i R8BF004

Posted 29 November 2008 - 11:10 AM

after read this, i'm still didn't know, there's for db2020. mine in db2010 (w810)
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)


This post has been edited by H_rY: 29 November 2008 - 11:11 AM

0

#161 User is offline   zeemaxx Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 28
  • Joined: 06-January 08

Posted 29 November 2008 - 03:54 PM

if i want to change position of softkey label which value i should change? my phone is w800
0

#162 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 November 2008 - 07:08 PM

View Postuhcord, on 2008-11-27 03:04, said:

There seems to be a problem with v.3 when saving for w580

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

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#163 User is offline   uhcord Icon

  • n00b
  • Group: Members
  • Posts: 4
  • Joined: 01-November 08

Posted 29 November 2008 - 07:51 PM

View PostMr. Thunderbird, on 2008-11-29 19:08, said:

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.


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

0

#164 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 November 2008 - 08:00 PM

View Postuhcord, on 2008-11-29 20:51, said:

Right.



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

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#165 User is offline   uhcord Icon

  • n00b
  • Group: Members
  • Posts: 4
  • Joined: 01-November 08

Posted 29 November 2008 - 11:41 PM

View PostMr. Thunderbird, on 2008-11-29 20:00, 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.


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. =)
0

#166 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 November 2008 - 11:52 PM

View Postuhcord, on 2008-11-30 00:41, said:

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. =)

:good:

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 :(
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#167 User is offline   DaDih* Icon

  • The Most Important Things
  • Icon
  • Group: VIP
  • Posts: 2,107
  • Joined: 27-April 08
  • Gender:Male
  • Location:Somewhere I Belong
  • Mobile:W580i Ultimate Edition™
  • Tutorials Submitted:5

Posted 30 November 2008 - 01:13 AM

Mr T you are amazing!!! :good:
Good stuff!!
0

#168 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 November 2008 - 03:08 AM

hehe thanks, :)

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

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#169 User is offline   photographer Icon

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

Posted 30 November 2008 - 01:49 PM

looking forward to the release mate :)
0

SE-NSE

#170 User is offline   DaDih* Icon

  • The Most Important Things
  • Icon
  • Group: VIP
  • Posts: 2,107
  • Joined: 27-April 08
  • Gender:Male
  • Location:Somewhere I Belong
  • Mobile:W580i Ultimate Edition™
  • Tutorials Submitted:5

Posted 30 November 2008 - 02:29 PM

Hahaha MrT I can remove the date and hour with your program!! :p
I'm here to request to you but trying I found how to do!! :good:
0

  • (19 Pages)
  • +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

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