Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 34
Registered: ‎12-20-2010
My Device: DevAlpha Beta 2

Problem NavigationPane within TabbedPane

Hello,

 

The application I am working on is a BB10 cascade.

I have a question about my architecture which is a TabbedPane, with, inside earch Tab, NavigationPanes.

I create everything from C++ like this :

 

// TabbedPane creation

TabbedPane *tabbedPane = TabbedPane::create();

tabbedPane->setShowTabsOnActionBar(true);

 

// Home tab

NavigationPane *homeNavigationPane = NavigationPane::create();

MTHomePage *homePage = new MTHomePage(homeNavigationPane);

homeNavigationPane->push(homePage->getPage());

 

Tab *homeTab = Tab::create();

homeTab->setTitle(Application::instance()->translate("App", "homeTab"));

homeTab->setContent(homeNavigationPane);

tabbedPane->add(homeTab);

 

// Search tab

NavigationPane *searchNavigationPane = NavigationPane::create();

MTSearchPage *searchPage = new MTSearchPage(searchNavigationPane);

searchNavigationPane->push(searchPage->getPage());

 

Tab *searchTab = Tab::create();

searchTab->setTitle(Application::instance()->translate("App", "searchTab"));

searchTab->setContent(searchNavigationPane);

tabbedPane->add(searchTab);

 

The problem is that, when I select the second Tab, I have this "push" animation as if my Search screen was pushed in a NavigationPane. I don't want this animation, I just want my Page to be displayed normally.

 

Any idea ?

 

Thank you

Developer
Posts: 107
Registered: ‎05-11-2011
My Device: BlackBerry Z10 LE

Re: Problem NavigationPane within TabbedPane

Hi,

 

You can disable implicite animation .

 

 

hope this link helps you.

https://developer.blackberry.com/cascades/documentation/ui/animations/implicit_animations.html

Contributor
Posts: 34
Registered: ‎12-20-2010
My Device: DevAlpha Beta 2

Re: Problem NavigationPane within TabbedPane

Hello,

 

Thank you for your suggestion.

I tried to use ImplicitAnimationController but didn't seem to work.

I will keep on trying and let you know.