×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    LWUIT Tabs creation

    i have created LWUIT Tabs and added my LWUIT List to the Tabs and Displayed,but my Problem is,when i add number of List items to the Tab,those list items are displayed ,but when i scroll up my List,my Tab will also gets scrolled,how to fix my tab position? Here my Code:

    tabs=new Tabs(Component.BOTTOM);
    tabs.addTab("TopNews", myNewsList);
    form1.addComponent(tabs);
    form1.show();
    the above tab will be displayed by default,how to display my second tab information when ,i click on Tab2?

  2. #2
    Nokia Developer Expert
    Join Date
    May 2012
    Location
    Espoo
    Posts
    224

    Re: LWUIT Tabs creation

    to stop tabs scrolling, set form.setScrollable(false);
    and
    to add more tabs, do following way:
    tabs=new Tabs(Component.BOTTOM);
    tabs.addTab("TopNews", myNewsList);
    // create a second component like list
    tabs.addTab("tab 2", aboveCreatedComponent);
    //create third component
    tabs.addTab("tab 3", aboveCreatedComponent);
    form1.addComponent(tabs);
    form1.show();
    see LWUIT tabs demo

  3. #3
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    Re: LWUIT Tabs creation

    hi bandarap,

    if i do like this
    form.setScrollable(false);
    My complete list items are not scrolling on screen....?

  4. #4
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: LWUIT Tabs creation

    Hi pavanragi,

    Try to add the list to a container with scrollableY(true). And then the container to the Tab.
    Regards,
    Harsha

  5. #5
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    Re: LWUIT Tabs creation

    Here is the answer for this:

    form1.setScrollable(false);

    And ideally also:

    form1.setLayout(new BorderLayout());
    form1.addComponent(BorderLayout.CENTER, tabs);

Similar Threads

  1. Bitmap font creation procedure by LWUIT
    By sreeNarayana in forum Mobile Java UI and User Experience
    Replies: 5
    Last Post: 2013-08-31, 14:32
  2. How to display a Form Screen on LWUIT Tabs?
    By pavanragi in forum Mobile Java General
    Replies: 3
    Last Post: 2012-08-09, 09:42
  3. LWUIT: tabs - how to mark the currently selected tab?
    By azakharo in forum Mobile Java General
    Replies: 3
    Last Post: 2011-12-09, 09:54
  4. Navigation Tabs Creation
    By yanamaddinaveen in forum Symbian User Interface
    Replies: 1
    Last Post: 2011-10-04, 13:09
  5. Dynamic Creation of tabs
    By harleen_bhatia in forum Symbian User Interface
    Replies: 7
    Last Post: 2008-08-05, 06:57

Posting Permissions

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