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

rsktash

08/25/2021, 9:14 AM
Hi I have implemented accompanist inset animation. But when the keyboard is showing the textfields are staying under the keyboard. How can I run scroll animation synchronized with keyboard show animation?
All textFields laid out in a scrollable column
d

Daniele Segato

08/25/2021, 9:18 AM
r

rsktash

08/25/2021, 9:31 AM
@Daniele Segato but I couldn’t find any solution in this thread. There is not any verticalScrollWithRelocation function in the example
d

Daniele Segato

08/25/2021, 9:31 AM
I've posted a workaround in that thread and it works for me
r

rsktash

08/25/2021, 12:01 PM
@Daniele Segato What parameter value you gave for activity windowSoftInputMode attribute?
adjustResize
?
And did you use accompanist insets library?
d

Daniele Segato

08/25/2021, 12:11 PM
yes and yes
r

rsktash

08/25/2021, 12:18 PM
Can you share a gist snipper?
d

Daniele Segato

08/25/2021, 12:20 PM
it's the one in the thread I linked, not sure what snipped you want 😄
r

rsktash

08/25/2021, 12:22 PM
Where I can see all code including accompanist insets implementation with column
d

Daniele Segato

08/25/2021, 1:32 PM
That would be too much code to share. And it also not all in the same place of my App.
There's nothing particular about the column, it just have a Modifier verticalScroll and insets are used as per documentation
what's your compose version?
r

rsktash

08/25/2021, 3:51 PM
jetbrains compose alpha 02
d

Daniele Segato

08/25/2021, 4:02 PM
1.1.0 alpha 02?
d

Daniele Segato

08/25/2021, 4:03 PM
why are you using the alpha when the stable 1.0.0 is out??
r

rsktash

08/25/2021, 4:04 PM
it’s multiplatform version
d

Daniele Segato

08/25/2021, 4:04 PM
oh, my question was about Android. I know nothing of that API in desktop