Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:25:25+00:00 2026-06-07T08:25:25+00:00

In my application, i have a topbar and bottom tab bar in all the

  • 0

In my application, i have a topbar and bottom tab bar in all the screen. So when user will click a particular tab, it will change only the middle part(the tabbar and toolbar will be same) of the screen. So i want to write some common code for this tabbar and toolbar. So where should i keep those common code?? Is it in view folder??

If any one can share some code or sample project, it will be helpful for me.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:25:27+00:00Added an answer on June 7, 2026 at 8:25 am

    Seems that you are going to build an application which is highly optimized.

    The best practice is:

    1) Your MainView.js should look like:

    Ext.define('app.views.MainView', {
      extend: 'Ext.Container' // container is the best way almost time
      config: {
        layout: 'card' // just for example
        items: [
           {xtype: 'MainTopToolbar'},
           {xtype: 'DynamicView'},
           {xtype: 'MainTabBar'},
        ]
        // other configs go here...
      }
    })
    

    The purpose of this step is to define an overall layout for your application. As you can see, it contains 3 main components (with the second one dynamic – that’s where you’re going to change according to user’s interactions).

    2) Define your xtypes, for example, MainTabBar:

    Ext.define('app.views.MainTabBar', {
      extend: 'Ext.TabBar',
      xtype: 'MainTabBar'.
      config: {
        docked: 'bottom',
        items: [
           // your tabs are defined here, see Ext.TabBar docs for more details
        ]
        // other configs go here...
      }
    })
    

    3) Put all your xtypes definition file, as well as MainView.js in view folder.

    4) In app.js, call Ext.create('app.views.MainView');

    This problem is quite general and a little bit complicated, so please spend time brainstorming. If there’s anything clear, please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem is that my application have around 12-13 screen, and all of that
My application have rating bars. I want to set the Rating bar is non-click
My application have a service and an activity. Sometimes the service will send a
I have a Client/Server application written Delphi. Essentially all the application is doing is
So all of the pages on my web application have URIs of the form
My application have several modules, each in one tab on the mainform. When using
I have an application which used top bar navigation and a MapView. On the
My RealEstate PHP Application have following user groups, Admins, Moderators Agents i want to
i have web application and in my web application have fiture to change email,
My application have an function that allow user to move and scale the image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.