we can't swipe tabs anymore

26 views
Skip to first unread message

Yassine el malyh

unread,
Dec 30, 2019, 12:24:41 PM12/30/19
to CodenameOne Discussions
Hello,


please we have a regression using tabs with  setSwipeActivated(true);
therefore we can't swipe tabs anymore.
please note that it's for an emergency situation.

thank you,
Regards

Form hi = new Form("Tabs", new BorderLayout());
         Tabs t = new Tabs();
        Label t1 = new Label("Blue");
        t1.getAllStyles().setBgColor(0xff);
        t1.getAllStyles().setBgTransparency(255);
        Label t2 = new Label("Green");
        t2.getAllStyles().setBgColor(0xff00);
        t2.getAllStyles().setBgTransparency(255);
        Label t3 = new Label("Red");
        t3.getAllStyles().setBgColor(0xff0000);
        t3.getAllStyles().setBgTransparency(255);

        t.addTab("Blue", t1);
        t.addTab("Green", t2);
        t.addTab("Red", t3);
    
    t.setSwipeActivated(true);

 
        hi.add(CENTER, t);

        hi.show();

Steve Hannah

unread,
Dec 30, 2019, 12:33:29 PM12/30/19
to codenameone...@googlegroups.com
This issue is already fixed, and will be included in the next update on Friday.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8454b6a1-340f-4056-b1cc-3c1b1cf15cf6%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One

Yassine el malyh

unread,
Dec 30, 2019, 1:55:38 PM12/30/19
to CodenameOne Discussions
Hi Steve,

Thanks for the reply.
I'm afraid this cannot be possible, as descripted we have an emergency situation, we are in a production instant and the client can not wait to friday to see if the probleme has been fixed in the home page, and i can't negociate for that.

Thank you for your comprehension.



Shai Almog

unread,
Dec 30, 2019, 10:09:57 PM12/30/19
to CodenameOne Discussions
Hi,
we will try to push out an update on Thursday evening. That's as soon as reasonably possible for this fix.
As a workaround you might be able to copy the code of Tabs to a different name in your local repository and use that just for this release.

Yassine el malyh

unread,
Dec 31, 2019, 5:02:28 AM12/31/19
to CodenameOne Discussions
 Hi,

 overriding shouldBlockSideSwipe() fixed the bug.

final Tabs t = new Tabs() {

            @Override
            protected boolean shouldBlockSideSwipe() {
                return !isSwipeActivated();
            }
        };

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.


--
Yassine El Malyh
Team leader Consultant Senior Mobile Developpement Engineer PhD Student
Rabat-Casablanca,Maroc
Reply all
Reply to author
Forward
0 new messages