Android edittext new line keyboard over content

1 answer

My edittext code:

<EditText     android:id="@+id/message"     android:layout_width="0dp"     android:layout_height="wrap_content"     android:layout_alignStart="@+id/poruke"     android:layout_alignTop="@+id/posaljiPoruku"     android:layout_alignBottom="@+id/posaljiPoruku"     android:layout_marginStart="5dp"     android:layout_toStartOf="@+id/posaljiPoruku"     android:layout_weight="1"     android:gravity="top"     android:inputType="textMultiLine"     android:maxLines="3"     android:textColor="@android:color/white"     app:layout_constraintBottom_toBottomOf="@+id/posaljiPoruku"     app:layout_constraintEnd_toStartOf="@+id/posaljiPoruku"     app:layout_constraintStart_toStartOf="@+id/poruke" /> 

When I type the letters and I enter a new line, enter everything is OK, picture 1 and picture 2. When i do not enter a new line but word wrapping happens automatically i have a problem with picture 3. EditText and Button goes under the keyboard. Plase help


attached picture

All answers to this question, which has the identifier 61237536

The best answer:

Try to resize your layout when soft keyboard opens.

<application  ..........  android:windowSoftInputMode="adjustResize">  .....  ..... </application> 

Last questions

how do i remove the switch on my home screen?
how to edit the JS date and time to update atuomatically?
How to utilize data stored in a multidimensional array
Powermockito not mocking URL constructor in URI.toURL() method
Android Bluetooth LE Scanner only scans when phone's Location is turned on in some devices
docker wordpress container can't connect to mysql container
How can I declare a number in java that is more than 64-bits? [duplicate]
Optaplanner solutionClass entityCollectionProperty should never return null error when simple JSON object passed to controller
Anylogic, get the time a pedestrain is in a queue
How do I fix this syntax issue with my .flex file?
Optimizing query in PHP
How to find the highest number of a column and print two columns of that row in R?
Ideas on “Error: Type is referenced as an interface from”?
JCIFS SmbFile.exists() and SmbFile.isDirectory() return false when it exists and I can listFiles()
PHP total order
Laravel booking system design
neural net - undefined column selected
How to indicate y axis does not start from 0 in ggplot?
Fragments in backStack
Spinner how to change the data