×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    3

    image as background

    I have a midlet, that when it runs, presents a List of several options, and I would like to add an Image to that. I don't want to associate an image for every option, but an image for the "screen".

    In other words, I want to show an Image, and on top of this image show the list of options.

    If this is possible, please tell me how.

    Thanks

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    3

    Re: image as background

    Or, can I add an image under or above the list?

  3. #3
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: image as background

    Hi ,

    AFAIK you can't add a background image to javax.microedition.lcdui.List.

    you can do it only if u r drawing ur own list in canvas.


    Regards,
    Wang

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    3

    Re: image as background

    thanks wang_shui,

    now, the question would be, how can I place or add a list in a canvas?

  5. #5
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: image as background

    You cannot place your list in canvas. I guess what Wang meant was to do your own custom implementation. May be I shall explain. You have to display a Canvas and on that canvas you have to draw the contents(items) of the list by using drawString(). You have to write your own code for handling list selection by using keyPressed() method of Canvas.

    Hope this clarifies!

    Regards
    Gopal

  6. #6
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: image as background

    Hi gojurado,

    In addition to what Wang and Gopal informed, here are some articles and tutorials covering MIDP 2.0's CustomItem:

    Custom GUI development with MIDP 2.0
    http://www.ibm.com/developerworks/w...y/wi-developui/

    Using Custom Items in MIDP 2.0
    http://developers.sun.com/techtopic...ips/customitem/

    Hope it helps!

    BR,

    Juarez Junior

  7. #7
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: image as background

    Plz have a look at this link,
    http://discussion.forum.nokia.com/fo...ad.php?t=21844

    Wang

Similar Threads

  1. Replies: 6
    Last Post: 2007-06-28, 11:22
  2. AknWaitDialog squeezes background image
    By tryynanen in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-10-20, 09:49
  3. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  4. background image in series60
    By jack44 in forum Symbian
    Replies: 1
    Last Post: 2003-07-31, 18:13
  5. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×