BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-09-2008, 10:06 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to divide the Screen in 2 parts? (Need to show Carousel)

Please Login to Remove!

Hi all ..

I am writing a BB application (RIM JDE 4.2) and need to show a carousel at the bottom of the screen. For that I need to divide the screen into two horizontal parts. For e.g. If I have a list in the upper part of the screen and if the list size is greater than that can be displayed in the upper part of the screen then a vertical scroll must appear for the upper part of the screen, keeping the lower part of the screen intact. So, that a series of buttons can be used to implement the Carousel feature. Could not find a way to do that.

Need to know how to divide the screen in 2 horizontal parts.
Please help me out on this .. and if this has been discussed already, pls point me to the appropriate thread.

Thanks a lot.
- Omi
Offline  
Old 07-09-2008, 10:47 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

look here:
Help in dividing mainScreen into two...
Offline  
Old 07-09-2008, 10:51 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

just looked in my code. actually the managers are scrollable there and not the listfield inside...

Code:
		_vfmTop = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR | VerticalFieldManager.USE_ALL_WIDTH)
		{
			protected void sublayout(int maxWidth, int maxHeight)
			{
				super.sublayout(maxWidth, maxHeight);
				setExtent(maxWidth, maxHeight/2);
			}
		};

		_vfmBottom = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR | VerticalFieldManager.USE_ALL_WIDTH)
		{
			protected void sublayout(int maxWidth, int maxHeight)
			{
				super.sublayout(maxWidth, maxHeight);
				setExtent(maxWidth, maxHeight);
			}
		};

Last edited by Ivanov : 07-09-2008 at 10:52 AM.
Offline  
Old 07-10-2008, 06:23 AM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot Ivanov ..
that really helped .. with just few changes ..

Cheerz!
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.