J2ME添加自定义图标


2010-04-23 11:01

与图标有关的是这两行:
      MIDlet-Icon: ***.png
      MIDlet-1: GameName, ***.png, classmain
      ***.png就是图标文件的名称,比如icon.png, /icon.png, /image/icon.png等等;其中“/”表示路径,比如/icon.png表示图标是根目录下的icon.png文件,/image /icon.png表示图标是/image/目录下的icon.png文件,等等。没有“/”表示文件放在根目录下。
    图标的名称也可以随便修改,但是上述这两行的文件名称一定要一致,另外建议最好不要用中文名称。
   添加图标 可能有的MF文件中没有MIDlet-Icon: ***.png这行。没关系,这表明软件(游戏)没有定义图标,你可以定义一个图标名称,并把这一行添加到文件中,然后根据你定义的位置将你要添加的图标拖如到jar包里面

Icon尺寸:

The best J2ME MIDlet icon size settings
Posted by mypapit on 09/10/07 in J2ME / JavaME, Java , Mobile Software, Tips, Tricks, Guide, newbie

Although not required, It is nice to include icon in your MIDlet distribution as it give a unique feeling to your mobile application. The only problem is different device seems to have different icon sizes requirements for tJ2ME MIDlet.

The Ideal Icon size guidelines for different mobile device
Here is the icon size guideline for different devices

Nokia
Series 40
128x160=24x24, 208x208=46x46, 240x320=46x48
S60 1st and 2nd
176x208=42x29, 352x416=76x76
S60 3rd
176x208=31x31, 208x176=37x37, 352x416=76x76, 240x320=53x53/55x55, 320x240=52x52/54x54, 208x208=37x37
N90/N95 : 84x58

Samsung & Sony Ericsson
Most Samsung phone accept 16x16, 32x32 icon size

Motorola
15x15, 16x16, 32x32

Most phone seems to accept 8bit-depth color for MIDlet icons, except Nokia S60 3rd edition which seems display 24bit icon quite well.

Note that most of this figure are based on experiments and observation on different phone models.

Mon 9 Mar 2009
BlackBerry screen and icon sizes
Posted by carson under meta

For some reason the old link I had that contained display dimensions for BlackBerry devices is resulting in a 404 now. When you are doing BlackBerry development it is nice to be able to go to one page that just shows you the screen sizes instead of having to look at each device page so I don't know why they removed this page. After looking around a little I couldn't find a consolidated list that has just screen sizes so I figured I would put one together that replicates the old link:

BlackBerry device model Display screen size Icon image size
BlackBerry Pearl 8100 240 x 260 pixels 60 x 55 pixels Icon theme
48 x 36 pixels Zen theme
BlackBerry 7100 Series 240 x 260 pixels 60 x 55 pixels Icon theme
48 x 36 pixels Zen theme
BlackBerry Pearl 8220 240 x 320 pixels 46 x 46 pixels
BlackBerry Curve 8300 320 x 240 pixels 53 x 48 pixels Icon theme
48 x 36 pixels Zen theme

BlackBerry Curve 8900 480 x 360 pixels Unknown
BlackBerry 8800 Series 320 x 240 pixels 53 x 48 pixels Icon theme
48 x 36 pixels Zen theme
BlackBerry 8700 Series 320 x 240 pixels 53 x 48 pixels Icon theme
48 x 36 pixels Zen theme
BlackBerry Bold 9000 480 x 320 pixels 80 x 80 pixels
BlackBerry Storm 9500 360 x 480 pixels 76 x 76 pixels Home screen
24 x 24 pixels Shortcut bar



你可能感兴趣的:(J2ME)