본문 바로가기

Study/Compose

Compose / TopAppBar Title 가운데 정렬 - CenterAlignedTopAppBar

반응형

Material3의 CneterAlignedTopAppBar - TopAppBar Title을 가운데 정렬할 수 있다

@ExperimentalMaterial3Api
@Composable
fun CenterAlignedTopAppBar(
    title: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    navigationIcon: @Composable () -> Unit = {},
    actions: @Composable RowScope.() -> Unit = {},
    windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
    colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(),
    scrollBehavior: TopAppBarScrollBehavior? = null
): Unit

 

 

https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary

 

androidx.compose.material3  |  Android Developers

androidx.car.app.managers

developer.android.com