Re: [android-developers] Dynamic views removed when switching to landscape

2010-01-27 Thread TreKing
On Wed, Jan 27, 2010 at 11:36 AM, BobMorane wrote: > I believe that's because the main.xml file is reloaded so all the > views that are not described in the xml are gone. > Yup Is there a nice way to keep the same view hierarchy when going to > landscape mode and not lose the views added dynam

[android-developers] Dynamic views removed when switching to landscape

2010-01-27 Thread BobMorane
Hello, I thought I already posted this question but I can't find it so I ask again :-) I add dynamically some views to my main view with addView(). When the phone goes to landscape mode, these views are no longer on the screen. I believe that's because the main.xml file is reloaded so all the vi