codenameone - How can i add pull to fresh option in swipe tabs in codename one? -


i want add pull fresh option in swipe tabs it's not working have taken container , try add seems same.

here code

displaycontainer   = new container(); getdisplay(displaycontainer);     for(i=0;i<totalradiobutton;i++){         tabs.hidetabs();         displaycontainer   = new container(new boxlayout(boxlayout.y_axis));         getdisplay(displaycontainer);         tabs.addtab("",displaycontainer);         //tabs.add(flowcontainer);         tabs.setname("t"+i);         tabs.settabuiid(tabs.getname());         radiobutton =new radiobutton();         radiobutton.setname("rbt"+i);         radiotypecontainer.add(radiobutton);         finalradiolist.add(radiobutton.getname());         tabslistname.add(tabs.gettabuiid());         radiolist.add(radiobutton);         tabindex0="rbt0";         if(radiolist.get(i).getname().equals(tabindex0)){             radiolist.get(i).setselected(true);          }         buttongroup.addall(radiobutton);       }  tabs.getcontentpane().addpulltorefresh(new runnable() {             @override             public void run() {               getmylist();              }         }); 

thanks in advance

as chen mentioned need add displaycontainer notice needs y scrollable work. suggest placing whole tabs container center of border layout it's parent scrollable.


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -