selfteaching / How-To-Ask-Questions-The-Smart-Way

564 stars 288 forks source link

KivyMD MDTabs - not covering full width of the window #20

Open trueexplorer13 opened 3 years ago

trueexplorer13 commented 3 years ago
            ![SharedScreenshot](https://user-images.githubusercontent.com/84591958/119433905-ff261180-bccb-11eb-9edc-2055b667d036.jpg)
trueexplorer13 commented 3 years ago
`<Tab>:
    MDLabel:
        id: label
        text: "Welcome to Main Screen"
        halign: 'center'

MDBoxLayout:
    orientation: 'vertical'

    MDToolbar:
        title: 'WhatsApp'
        right_action_items: [['magnify', lambda x: print('Magnify')], ['chat', lambda x: print('Chat')], ['dots-vertical', lambda x: print('Menu')]]

    MDTabs:
        id: android_tabs
        on_tab_switch: app.on_tab_switch(*args)
        Tab:
            text: 'CALLS'
        Tab:
            text: 'CHATS'
        Tab:
            text: 'CONTACTS'

`