I created two layout folder in the layout-land,layout-port containing same files to pick layout depends on the mode change and i added this in my activity.
public void onConfigurationChanged(Configuration newConfig
{super.onConfigurationChanged(newConfig);setContentView(R.layout.main);}
and in manifest and android:configChanges="orientation";
1 Answer