0

How can I find out the default height for the SmallTopAppBar (or just TopAppBar)? I am implementing a SearchView that replaces the topBar with a similar looking bar with the Search TextView but I cant find out how to apply the proper height.

In TopAppBarDefaults:

https://developer.android.com/reference/kotlin/androidx/compose/material3/TopAppBarDefaults

only the color is shown.

M Rajoy
  • 4,028
  • 14
  • 54
  • 111

1 Answers1

0

It's 64dp, you can find that in TopAppBarSmallTokens and in material design docs.

Jan Bína
  • 3,447
  • 14
  • 16
  • YEa but Id like to assing the value semantically straight from the theme rather than hardcode it directly. But I see all the values are private... – M Rajoy Apr 07 '23 at 12:42