• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why imageitem not locate on center of screen?

 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
new ImageItem("", Image.createImage("flower.png"),ImageItem.LAYOUT_CENTER, "");
Why the image still align to left?
Any idea?
Andrew
 
Baruch Sadogursky
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From MIDP API documentation:

The value of the layout field is merely a hint. Because of device constraints, such as limited screen size, the implementation may choose to ignore layout directions.

And they do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic