diff --git a/android/modules/ui/src/java/ti/modules/titanium/ui/TabGroupProxy.java b/android/modules/ui/src/java/ti/modules/titanium/ui/TabGroupProxy.java index 1e57b728542..f7ba9fd036a 100644 --- a/android/modules/ui/src/java/ti/modules/titanium/ui/TabGroupProxy.java +++ b/android/modules/ui/src/java/ti/modules/titanium/ui/TabGroupProxy.java @@ -389,7 +389,7 @@ public void windowCreated(TiBaseActivity activity, Bundle savedInstanceState) ((TiUITabLayoutTabGroup) view).setTabMode((Integer) getProperty(TiC.PROPERTY_TAB_MODE)); } } else { - if (TiConvert.toBoolean(getProperty("newLayout"), false)) { + if (TiConvert.toBoolean(getProperty("experimental"), false)) { view = new TiUIBottomNavigation(this, activity); } else { view = new TiUIBottomNavigationTabGroup(this, activity); diff --git a/apidoc/Titanium/UI/Tab.yml b/apidoc/Titanium/UI/Tab.yml index 629d2fc7ac1..d347601c856 100644 --- a/apidoc/Titanium/UI/Tab.yml +++ b/apidoc/Titanium/UI/Tab.yml @@ -255,13 +255,13 @@ properties: otherwise. #### Android Tab Icons - Can be used in combination with `iconFamily` in a BottomNavigation setup with `newLayout:true`. + Can be used in combination with `iconFamily` in a BottomNavigation setup with `experimental:true`. type: String - name: iconFamily summary: Specifies the font family or specific font to use. description: | - When using a BottomNavigation setup with `newLayout:true` you can use this property in combination + When using a BottomNavigation setup with `experimental:true` you can use this property in combination with an `icon` to use an icon-font for the tab icons: ``` js diff --git a/apidoc/Titanium/UI/TabGroup.yml b/apidoc/Titanium/UI/TabGroup.yml index 12245fd342a..3c6f98d6c0c 100644 --- a/apidoc/Titanium/UI/TabGroup.yml +++ b/apidoc/Titanium/UI/TabGroup.yml @@ -26,7 +26,7 @@ description: | one to be opened later, but the root of the application must be a heavyweight window to prevent it exiting. Tabs cannot be removed from the tab group once added, and tabs cannot be reordered. - * If you use a BottomNavigation on Android with a Material 3 theme you should set `newLayout:true`. + * If you use a BottomNavigation on Android with a Material 3 theme you should set `experimental:true`. * On iOS, more than one tab group may exist, and may be opened and closed as required. Each tab can contain a stack of windows, and the user can switch between them by tapping the @@ -636,7 +636,7 @@ properties: since: "12.5.0" availability: creation - - name: newLayout + - name: experimental summary: | Only used for a BottomNavigation setup. If set to `true` it will use an optimized BottomNavigation setup with fixes for Material 3 layouts and new properties: `indicatorColor` and `iconFamily`. @@ -759,7 +759,7 @@ examples: const bottomNav = Ti.UI.createTabGroup({ tabs: [tab1, tab2], theme: "Theme.Titanium.Material3.DayNight", - newLayout: true, + experimental: true, style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION });