Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Its working.. I created it for you. use this code</p> <pre><code>public class home extends UiApplication { public static void main(String[] args) { home app = new home(); app.enterEventDispatcher(); } MainScreen screen = new MainScreen(); private int deviceWidth = Display.getWidth(); private int deviceHeight = Display.getHeight(); LabelField lbl1 = new LabelField("label"); final Bitmap backgroundBitmap = Bitmap.getBitmapResource("bg1.jpg"); final Bitmap backgroundBitmap1 = Bitmap.getBitmapResource("bg2.jpg"); final BitmapField mybitmapField = new BitmapField(Bitmap.getBitmapResource("facebook-logo.jpg"),DrawStyle.HCENTER); public home() { super(); pushScreen(screen); VerticalFieldManager mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR ) { public void paint(Graphics graphics) { graphics.clear(); graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, backgroundBitmap, 0, 0); super.paint(graphics); } }; //this manger is used for adding the componentes VerticalFieldManager subManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR ) { public void paint(Graphics graphics) { graphics.clear(); graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, backgroundBitmap1, 0, 0); super.paint(graphics); } }; screen.add(mainManager); mainManager.add(lbl1); mainManager.add(subManager); subManager.add(mybitmapField); subManager.add(new LabelField("Data 1")); subManager.add(new LabelField("Data 1")); subManager.add(new LabelField("Data 1")); } } </code></pre> <p>output will be like this. <img src="https://i.stack.imgur.com/9VUTW.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload