Good evening everyone, I have spend the whole wee...
# android
s
Good evening everyone, I have spend the whole week to read telegram code, but I still have no idea how they can handle the keyboard and edit text very smooth, correct height. Does anyone know what their solution is? I have tried : windowsoftinputmode = adjust_resize but Im still see blink not smooth windowsoftinputmode = adjust_nothing and popup window to getting keyboard's height but it's not work to get correct keyboard's height when choose emoji , search gif on google keyboard Thanks.
g
Btw I see a lot of keyboard related glitches on Telegram with Android 11, probably because their code related to keyboard measuring conflicts with new keyboard api
s
How about signal app? Do you see any problem on your phone?
g
I don’t use Singal, so not sure
what kind “blink” do you see?
s
This blink I have seen
g
It looks like a problem with your UI, you keep showing stickers block, but without content
so you see double screen resize, when your block is hidden and when keyboard resized the screen
s
Sr I dont get your mean, so How to show sticker and close keyboard at the same time?
g
It just looks that or it's too slow, maybe sticker block hide scheduled with handler queue (LiveData + post?), so it delayed, or maybe something similar Have you tried reproduce this with very simple UI on a sample app?
Or maybe it would be less jumping of content if you try to add fast animation for ig
s
Simply I think keyboard make window resize and block sticker have 2 states( visible or gone) , with adjust_resize we always have 2 actions make layout resize 2 times that why it is blink.
I will try simple ui edittext and block again. thanks :(((