layout doesnt arrange as per screen orientation change multiple times in api10

207 Views Asked by At

im working with my android app, where i used

          android:configChanges="keyboardHidden|orientation|screenSize"

so that the data from sqlite are not loaded all the time. it worked well for api 10 and api 18. i tested both of them by changing the orientation portrait and landscape a multiple times.

but now i am using api library AppCompat to add official action bar. the problem now is that using api18 and changing the orientation a multiple time,everything works as it should.

but changing orientation from

PORTRAIT to LANDSCAPE and back to PORTRAIT for api10

the data is still displayed as landscape. api10 doesnot change back the data to its orientation i am using GridView for portait numCol=1. landscape numCol=2. so for api10 when its in portrait mode it displays only 1 column which is perfect. just it doesnot display it in portrait view

left image API-18 and right image API-10

0

There are 0 best solutions below