I made 2 layout , the first one for android 2.1 ( I need it only in portrait) and second one for android 3 ( I need it only in landscape) and these 2 layout use one class . now how can i set these two layout on landscape and portrait? if i set it in AndroidManifest , i can just use one of these mode portrait or landscape , just it ,
we can't use:
<activity android:name=".activity" android:screenOrientation="portrait"></activity>
now which method is true?
Thanks