Answer the question
In order to leave comments, you need to log in
[Android] How to customize textfield?
Hello! There was such a problem.. There is a TextField (hereinafter, textbox, so familiar ;) ) with multi line, for entering a large amount of text. But here .. when you click on this textbox, the keyboard partially closes it (is superimposed on top). Put this textbox in ScrollView, the problem is gone. It seems to rise higher, above the keyboard... But... not completely, which means that this is not the correct method. But the main problem lies elsewhere. The text inside this textbox has stopped scrolling! (I'm sorry, I don't know .. what is the correct ending here, tsya or tsya. Well, okay xD) More precisely ... it scrolls, but very little by little, and in order to scroll at least a couple of lines you have to wipe a hole in the screen . And this is provided that the keyboard is hidden. For, if it is active, then ScrollView and not textbox. Here. I think I explained it clearly. So, how is it generally done? How, what and where to shove? I apologize in advance.... perhaps this question is stupid and banal. The effect is needed ... here .. just like in the VK application. When entering a message. We click on the textbox, it becomes higher than the keyboard, that is, we see both the keyboard and what we enter, and at the same time, when there is a lot of text, we can scroll it. Here. Thanks in advance! when there is a lot of text, we can scroll it. Here. Thanks in advance! when there is a lot of text, we can scroll it. Here. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
As far as I understand, you need to write in AndroidManifest.xml something likeandroid:windowSoftInputMode="adjustResize"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question