Why not use always android:configChanges=”keyboardHidden|orientation”?

I was wondering why not use android:configChanges="keyboardHidden|orientation" in every (almost every ;)) activity?

Goods:

  • no need to worry about your activity been rotated
  • it’s faster

Not so nice:

  • need to change your layouts if they are depending on screen size (e.g. layouts with two columns or so)

Bad:

  • no flexible way to have different layouts on different orientation
  • not so good when using fragments

But if we don’t use different layouts, why not?

4 Answers
4

Leave a Comment