1

I'm working on an app in android studio.

I have an edit text and an image view inside a linear layout. Screenshot 1

When you tap the edit text it's working good. Screenshot 2

When I press the blue button on my keyboard at the bottom right it adds a new line and it's working fine. Screenshot 3

When you go back up a line the on screen keyboard covers the edit text that is below text cursor. Screenshot 4

I want the edit text to always stay above the on screen keyboard. This image is what it looks like now and a fake image of what I want it to look like. Image

Is there something you can add in the xml file to fix this?

I can't find anything to fix this problem.

1 Answers1

2

use android:windowSoftInputMode="adjustPan|adjustResize" on the Activity tag in your AndroidManifest.

Wrap the layout in a ScrollView

Narendra_Nath
  • 4,578
  • 3
  • 13
  • 31