View Single Post
Old 06-29-2009, 06:18 AM   #9 (permalink)
Morion
Knows Where the Search Button Is
 
Join Date: Jun 2009
Location: Belarus, Minsk
Model: none
PIN: N/A
Carrier: none
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yahoo! I've just made this. Here's code.
Code:
	private void createUI(){
		backGround = Bitmap.getBitmapResource("bg.jpg");
		myManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR){
			public void paint(Graphics graphics){
				graphics.clear();
				graphics.drawBitmap(0, 0, Display.getWidth(), Display.getHeight(), backGround, 0, 0);
				super.paint(graphics);
			}
		};
		
		mainManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR){
			protected void sublayout(int maxWidth, int maxHeight){
				int displayWidth = deviceWidth;
				int displayHeight = deviceHeight;
				
				super.sublayout(displayWidth, displayHeight);
				setExtent(displayWidth, displayHeight);
			}
		};
		
		myManager.add(mainManager);
		add(myManager);
		
	}
Offline   Reply With Quote