https://kotlinlang.org logo
#compose
Title
# compose
s

Se7eN

09/19/2020, 12:40 PM
How to disable elevation overlays?
Also the padding between the
navigationIcon
and
title
of
TopAppBar
y

Yann Badoual

09/19/2020, 2:20 PM
If you want less padding, you can use the overload that takes
content
and implement the content yourself (icon+title). If you want more, you can just add padding to the title composable with a modifier
👍 1
l

Louis Pullen-Freilich [G]

09/19/2020, 5:08 PM
Currently there is no way to disable elevation overlays, but they are only applies for the color
surface
so you can use a different color to prevent the overlay behavior
👍 1
s

Se7eN

09/19/2020, 5:58 PM
Alright thanks!
Also, is there a way to remove
TextField
's underline or do I have to use
BaseTextField
7 Views