0

I have an App called Countdown Calendar (It is a widget that counts down the days to events in your Google Calendars; fixing minor bugs atm). But the bug I am trying to fix right now has to do with the UI re-flowing whenever you input text. Let me show you by example. Here is what the UI looks like when the keyboard is NOT out:

And this is what it looks like when the keyboard is out:

How do I make it so that the UI does not look terrible when the user attempts to use the keyboard?

Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73

2 Answers2

5

Without being able to see the second image, I would guess you simply need to add android:windowSoftInputMode="adjustPan" to your Activity tag in the manifest to cause your layout to simply pan out of view instead of attempting to rescale to fit the remaining area.

Kevin Coppock
  • 133,643
  • 45
  • 263
  • 274
  • 1
    Perfect! That is exactly what I wanted! You have the answer and my thanks! For anybody else that, like me, was interested in the other options to windowSoftInputMode then see here: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft – Robert Massaioli Sep 15 '12 at 05:17
  • 2
    or do it from the activity `getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);` – bancer Oct 27 '12 at 21:13
2

Use scrollView as a parentView and set the remaining subview inside it.

Rajendra
  • 1,700
  • 14
  • 17