java-melcduimidp-2.0

How to Create Header on j2me(java) screen


I want to create a Header on my j2me lcdui list Screen. How can I create it? When I click on my lcdui list screen, I will navigate to lcdui form screen, that time header will has to be same.

How can I create? I have used this class com.nokia.mid.ui.DirectUtils but failed.


Solution

  • You can insert an advertisement Image with empty String using List.insert.

    list.insert(0, "", adImage);
    

    But this image might be scrolled up if you have enough items in the list. If you need an advertisement image fixed under the title you might consider using LWUIT instead of LCDUI.