<mvc:View
    controllerName="sap.m.sample.SegmentedButton.Page"
	height="100%"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns="sap.m">
	<Page
		showHeader="false"
		class="sapUiContentPadding" >
		<subHeader>
			<OverflowToolbar>
				<ToolbarSpacer/>
				<SegmentedButton selectedKey="kids">
					<items>
						<SegmentedButtonItem text="Kids" key="kids" />
						<SegmentedButtonItem text="Adults" />
						<SegmentedButtonItem text="Seniors" />
					</items>
				</SegmentedButton>
				<ToolbarSpacer/>
			</OverflowToolbar>
		</subHeader>
		<VBox width="100%">
			<SegmentedButton selectedKey="satellite" class="sapUiSmallMarginBottom">
				<items>
					<SegmentedButtonItem text="Map" />
					<SegmentedButtonItem text="Satellite" key="satellite" />
					<SegmentedButtonItem text="Hybrid" />
				</items>
			</SegmentedButton>
			<SegmentedButton selectedKey="competitor" class="sapUiSmallMarginBottom">
				<items>
					<SegmentedButtonItem icon="sap-icon://taxi" />
					<SegmentedButtonItem icon="sap-icon://lab" />
					<SegmentedButtonItem icon="sap-icon://competitor" key="competitor" />
				</items>
			</SegmentedButton>
			<SegmentedButton class="sapUiSmallMarginBottom">
				<items>
					<SegmentedButtonItem text="Selected" />
					<SegmentedButtonItem text="Enabled" />
					<SegmentedButtonItem text="Disabled" enabled="false"/>
				</items>
			</SegmentedButton>
			<Label text="Fire selectionChange event"/>
			<SegmentedButton id="SB1" selectionChange="onSelectionChange">
				<items>
					<SegmentedButtonItem text="One" />
					<SegmentedButtonItem text="Two" />
					<SegmentedButtonItem text="Three" />
				</items>
			</SegmentedButton>
			<Text id="selectedItemPreview"/>
		</VBox>
		<footer>
			<OverflowToolbar>
				<ToolbarSpacer/>
				<SegmentedButton selectedKey="small">
					<items>
						<SegmentedButtonItem text="Small" key="small" />
						<SegmentedButtonItem text="Medium" />
						<SegmentedButtonItem text="Large" />
					</items>
				</SegmentedButton>
				<ToolbarSpacer/>
			</OverflowToolbar>
		</footer>
	</Page>
</mvc:View>