Skip to content

feat(android): use borderRadius for floating BottomNavigation#14468

Open
m1ga wants to merge 2 commits into
mainfrom
androidBottomNavigationRadius
Open

feat(android): use borderRadius for floating BottomNavigation#14468
m1ga wants to merge 2 commits into
mainfrom
androidBottomNavigationRadius

Conversation

@m1ga

@m1ga m1ga commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Currently the radius of a floating bottomNavigation is fixed to 17dpi and the docs are showing wrong information about a XML file to change that. I've added that in https://github.com/tidev/titanium-sdk/pull/12977/commits but it was changed in before merging but the note in the apidocs wasn't removed.

This PR will use the borderRadius to allow it to have a custom borderRadius again.

Example

var win1 = Ti.UI.createWindow();
win1.add(Ti.UI.createLabel({
	text: 'I am window 1.'
}));

var win2 = Ti.UI.createWindow();
win2.add(Ti.UI.createLabel({
	text: 'I am window 2.'
}));

var tab1 = Ti.UI.createTab({
		window: win1,
		title: 'Blue',
		activeTitleColor: "#5555ff",
		titleColor: "#DDDDFF",
		tintColor: "#DDDDFF",
		icon: "appicon.png"
	}),
	tab2 = Ti.UI.createTab({
		window: win2,
		title: 'Red',
		activeTitleColor: "#5555ff",
		titleColor: "#DDDDFF",
		tintColor: "#DDDDFF",
		icon: "appicon.png"
	}),
	tabGroup = Ti.UI.createTabGroup({
		tabs: [tab1, tab2],
		paddingLeft: 15,
		paddingRight: 15,
		paddingBottom: 20,
		experimental: true,
		borderRadius: 100,
		theme: 'Theme.Titanium.Material3.DayNight.NoTitleBar',
		style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,
		tabsBackgroundSelectedColor: "#fff",
		tabsBackgroundColor: "#fff",
		navBarHidden: true
	});
tabGroup.open();

Default size:
Screenshot_20260623-165450

with custom borderRadius:
Screenshot_20260623-165205

Note: I have to remove the property otherwise it will apply it to the inner window too (only for the experimental:false way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant