Open m1ga opened 1 month ago
Can't you replace the old tab group API with the newer API internally? I do not see iOS implementing the same API as it already has, as it's the same. Ideally, this change would only swap the internal UI behind Ti.UI.TabGroup while retaining the API structure. Legacy things like the style
property can be dropped and edge cases like changing themes at runtime as well.
Pushed my current WIP where I use the old structure and you can use newLayout:true
:
var bottomNav = Ti.UI.createTabGroup({
tabs: [tab1, tab2],
newLayout:true, // <- new
style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION
});
to use the new XML layout.
I'm working on it at the moment :smile:
Test a different app today and added more parts: icon setter, shiftMode
icon can now use Ti.App.Android.drawable.something
and that can load animated icons too:
https://github.com/user-attachments/assets/478c9fdc-5a9c-4a6d-a721-6d37694ab830
(demo icon from https://shapeshifter.design/ )
Floating version is back:
New property iconFont
so you can use icons from a font right away:
'#tabHome': {
icon: "\ueac1",
iconFamily: "tabler-icons"
}
and with tintColor/activteTintColor support
Some updates:
statusBarColor
is available in the TabGroup too (like in the Window)flags: Ti.Android.STATUS_BAR_LIGHT
to set the Statusbar into light mode (dark text)backgroundColor
simple test: phone is in dark mode, all colors are set in the TSS file
Work in progress
Just a test for now.
Currently working:
indicatorColor
that allows you to set the color of the M3 ItemActiveIndicatorColorBildschirmaufnahme_20241002_231752.webm
Current issues: