lisovaccaro
lisovaccaro

Reputation: 33956

Android compatibility, how to use view attributes that only work on newer versions?

I'm sure this is an "easy" question, but I'm totally new to android and java. Basically there are certain attributes that have been changed on later versions eg:

        android:configChanges="keyboardHidden|orientation"

(older)

        android:configChanges="keyboardHidden|orientation|screenSize"

(newer)

What happens to older versions if I use the second option? Would they work correctly or not?

Upvotes: 0

Views: 51

Answers (1)

Tom Leese
Tom Leese

Reputation: 19699

In older versions of android, the screenSize attribute will just get ignored. You are fine to use the second configChanges in all versions.

Upvotes: 3

Related Questions