You can create your content here void lv_tabview_clean_tab ( lv_obj_t * tab ) ¶ĭelete all children of a tab created by lv_tabview_add_tab. Pointer to the created page object (lv_page). Tabview - pointer to Tab view object where to ass the new tab Pointer to the created tab lv_obj_t * lv_tabview_add_tab ( lv_obj_t * tabview, const char * name ) ¶Īdd a new tab with the given name Parameters Par - pointer to an object, it will be the parent of the new tabĬopy - pointer to a tab object, if not NULL then the new object will be copied from it The created Pages can be used as normal Pages and they have the usual Page parts.įunctions lv_obj_t * lv_tabview_create ( lv_obj_t * par, const lv_obj_t * copy ) ¶ When a new tab is added a Page is create for them on LV_TABVIEW_PART_BG_SCRL and a new button is added to LV_TABVIEW_PART_TAB_BG Button matrix. The size style property will set the its thickness. It can be styles using the typical background style properties. When the tab view is animated to an other tab the indicator will be animated too. To customize the tab bar, you'd need to use the renderTabBar prop of TabView to render the TabBar and pass additional props. It's a thin rectangle-like object under the currently selected tab. When the navigation experience for an app begins with bottom tabs, the child of. The top level of navigation in a Shell app is either a flyout or a bottom tab bar, depending on the navigation requirements of the app. The SolidColorBrush class defines the color property of IndicatorBackground, which represents the color of the selection indicator background. NET Multi-platform App UI (.NET MAUI) Shell is based on flyouts and tabs. LV_TABVIEW_PART_TAB_BG has an additional real part, an indicator, called LV_TABVIEW_PART_INDIC. The background of the indicator can be customized using the IndicatorBackground property of SfTabView. The height of the tab's button matrix is calculated from the font height plus padding of the background's and the button's style.Īll the listed parts supports the typical background style properties and padding. When tabs are selected, the buttons are in the checked state, and can be styled using LV_STATE_CHECKED. The tab buttons can be accessed via LV_TABVIEW_PART_TAB_BTN. LV_TABVIEW_PART_TAB_BG: The tab buttons which is a Button matrix.Ĭlicking on a button will scroll LV_TABVIEW_PART_BG_SCRL to the related tab's content. The background of the Page is always transparent and can't be accessed externally. It holds the content of the tabs next to each other. LV_TABVIEW_PART_BG_SCRL: it's the scrollable part of Page. On the background 2 important real parts are created: It a rectangle-like container which holds the other parts of the Tab view.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |