×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    159

    how we make List scrollable which add in Container

    hello. I am using nokia sdk2.0 using lwuit 1.5.Now my problem is that i have lwuit list of 50 items ,when i add this list in container then my list not scroll but when I set the property of container true for scroll that time list is scrolling but i don't want to scroll container i want scroll only list. My code is give below tell me how it is possible
    My code is
    Code:
                    Form f=new Form();
    		f.setScrollable(false);
    		f.setLayout(new BorderLayout());
    		f.getStyle().setBgColor(13808780);
    Container con=new Container();
    final List list=new List();
    		list.setRenderer(new MyRendered());
    list.setScrollVisible(true);
    for (int i = 0; i < 50; i++)
    		{
    			System.out.println(""+i);
    			list.addItem("THE GROOVE");
    			
    		}
    con.addComponent(list);
    
    Button button=new Button(Image.createImage("/map.PNG"));
    		con.addComponent(button);
    	f.addComponent(BorderLayout.CENTER,con);
    	f.show();
    please suggest me how we make only list scrollable
    Thanks,

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how we make List scrollable which add in Container

    Hello Vikranttanwar@,

    Best way would be to make a parent container or main container, then place you components inside that container,
    wrap you list inside one more container , set the scroll property to true, place this container inside your main container and things will work as you want.

Similar Threads

  1. scrollable container problem
    By dinesh547 in forum Symbian User Interface
    Replies: 1
    Last Post: 2011-08-01, 10:34
  2. Scrollable CEikImage on a Container
    By stavrospapa in forum Symbian
    Replies: 3
    Last Post: 2009-01-28, 12:12
  3. scrollable container example...
    By GeKI in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-12-05, 10:13
  4. S60's equivalent to UIQ scrollable container?
    By yjzhang in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-09-29, 12:29

Posting Permissions

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