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
Super Contributor
JeffLemon
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook

Peek and Navigation

I have a tabbed pane, with a tab for each part of my app.

 

I'm getting confused with peek.

 

1. Is there a way, for when a user clicks from Tab A to Tab B, they can peek back to Tab A?

 

2. Also I was wondering, in Tab A I have a page with graphics on then I want to add in a list view when a user clicks a button. How should I display this list view? Should everything in Tab A be on a navigation pane and iI pop things in and out? Or should I use a sheet?

 

3. Also with a tabbed pane, when the user is not viewing Tab B, should I delete Page B that sits inside Tab B and reinitiate it later? Or should I just intiate all of each Tabs pages at the start of the app?

 

Thanks

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
ekke
Posts: 1,595
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Peek and Navigation

you cannot peek from TAB B to TAB A - think of them sitting side-by-side at the same level

 

to have NavigationPane on each Tab is OK - I'm doing the same.

 

using a NavigationPane and Pages on top you can peek back

 

you should not initialize all of your QML stuff at start up of your app.

only what's visible at first

 

then its up to you if you always create /destroy the content of a TAB. I have 2 Tabs where I know that the user will most time switch between them, so they're always loaded. Another TAB only seldom used I create / destroy dynamically

 

---

so there's not THE one and only answer HowTo do this kind of stuff. it depends from your app and usecases.

you can also implement a learning system and monitor how often Tabs are clicked and decide ...

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Super Contributor
JeffLemon
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook

Re: Peek and Navigation

Thanks for teh detailed reply.

 

Just one question about NavigationPane.

 

How do you implement this as well as having tabs?

 

I set my tabs by using:

 

Application::instance()->setScene(tabbedPane);

 But to set a navigationpane, the docs say:

 

 Application::instance()->setScene(navigationPane);

 

Surely this will overide my tabs, how do I have bot at one - a navigation pane inside a page that is dispalyed from a tab?

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
ekke
Posts: 1,595
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Peek and Navigation

you have to start with a TabbedPane

 

then the content of a Tab will be a NavigationPane. To make it easy you should use an extra QML file for this

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Super Contributor
JeffLemon
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook

Re: Peek and Navigation

Thanks but i'm using C++

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone