and showing / hiding the texfield itself when its focus / value changes. There is an issue that when it hides, there is an exception. I guess we should not completely get rid of the inner text field in this scenario, rather hide it - so a simple
if
and
AnimatedVisibility
will not work here. What I'm looking for is something like the old
View.GONE
. Or just a possibility to go from wrapContent to 0 height and vice versa. Any hints how to best achieve it?
z
Zach Klippenstein (he/him) [MOD]
03/21/2022, 2:21 PM
The compose equivalent to view.GONE is to not place the placeable. You can do this with a layout modifier.