1

How can I avoid keyboard effect when it dismisses and in some screens it happens both when opening and dismissing keyboard.

enter image description here

Reza Faraji
  • 435
  • 1
  • 7
  • 14
  • what do you mean by "keyboard effect"? If you're talking about input pointer, check out [this answer](https://stackoverflow.com/a/68420874/3585796) – Phil Dukhov Nov 17 '22 at 07:10
  • @PhilDukhov I mean the effect that causes the whole screen to jump. The effect when keyboard is closing seems to pull the screen down with keyboard – Reza Faraji Nov 17 '22 at 08:01
  • Most probably you question had no reaction because you haven't provided a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). I haven't faced such side effects – Phil Dukhov Nov 17 '22 at 11:08

2 Answers2

0

For me, this is because my activity has following setting which causes bug from compose, if remove it, the problems disappeared.

android:windowSoftInputMode="adjustResize"

But other place needed this, so waiting for the fix from jetpack compose. https://issuetracker.google.com/issues/230652481

xfdai
  • 2,735
  • 1
  • 19
  • 18
0

For me it was because of 'animateContentSize' modifier on following page. it caused this effect

Reza Faraji
  • 435
  • 1
  • 7
  • 14