I have a problem with layout which is LinearLayout. I mean I have this line in manifest: android:configChanges="keyboard|orientation|screenSize"
and when I change orientation I have the same data. I have one RelativeLAyout in main layout which I don't want to still always the same, because when I change orientation my textViews missing. When I delete "screenSize" from manifest everything is ok with this RelativeLayout but I loose other data. How can I set to RelativeLayout when I change orientation, my Relative layout change with orientation and behave like in manifest all class is without screenSize, but other part of main LinearLayout behave like screenSize was in manifest?
Asked
Active
Viewed 52 times
0

edi233
- 3,511
- 13
- 56
- 97
1 Answers
0
create a new folder named layout-land
and in it put your intended layout file

Onur A.
- 3,007
- 3
- 22
- 37
-
This solution doesn't help, because when change orientation I loose data. – edi233 Jul 24 '13 at 11:35
-
you should use onSavedInstanceState and onRestoreInstanceState, take a look at here http://stackoverflow.com/questions/151777/saving-activity-state-in-android – Onur A. Jul 24 '13 at 11:39