1

I have an EditText using a background with a big height, when I click on my EditText, the screen shifts up to show the soft keyboard, but not the entire EditText stays visible. The bottom part of the Edit Text background disappears because the soft keyboard goes up in it. I need that my screen shifts up a little more! How could I do that?

Tks,

user2494863
  • 451
  • 7
  • 17

2 Answers2

1

I think its better to use a ScrollView. Using this will shift the entire screen up. Try it out once

Atish Agrawal
  • 2,857
  • 1
  • 23
  • 38
  • 1
    I'm already using a ScrollView. But it didn't shifts up till the end. If I swipe up my finger on it, I can see the small peace that dissapeared. What could I do to scrollview shifts 100% up? – user2494863 Jan 17 '14 at 16:43
  • 1
    check http://stackoverflow.com/questions/3080402/android-scrollview-force-to-bottom link – Atish Agrawal Jan 17 '14 at 16:44
0

Create a empty layout and put it at the bottom of the screen by property align parent bottom set to true.

Now set your edittext above it. Add property layout_above and pass the id of the layout.

Now in the manifest, add screensize to config changes attribute for that activity or in the application tag

Rahul Gupta
  • 5,275
  • 8
  • 35
  • 66