Display details fragment when screen orientation changes to portrait
<p>I'm new to fragments and my app contains a single frame layout that shows a list of options in portrait mode and in landscape shows a combination of list view in the left pane and the details of the selected option in the right pane.</p>

<p>On top of the screen, I have a header having images like logout, page title.</p>

<p>When I change the screen's orientation from landscape to portrait, I always see the list view appearing but with the header details from the landscape mode screen.</p>

<p>My question is how could I display the details fragment instead of list fragment while screen orientation changes from landscape to portrait?</p>

<p>Also, i got a java.lang.RuntimeException like: Your content must have a ListView whose id attribute is 'android.R.id.list'. To get rid of it, i placed a dummy listview and set its visibility to gone. Now its working fine,but is it a good practice ? and why I'm getting this exception?</p>
