java - Layout orientation? -
i made 2 layout , first 1 android 2.1 ( need in portrait
) , second 1 android 3 ( need in landscape
) , these 2 layout use 1 class . how can set these 2 layout on landscape , portrait? if set in androidmanifest
, can use 1 of these mode portrait
or landscape
, ,
we can't use:
<activity android:name=".activity" android:screenorientation="portrait"></activity>
now method true?
thanks
its rely not necessary set screen orientation attribute.
i handle senario in project. make 2 folder in resours
first portraitemode , second landscape maode
like layout folder , layout-land folder
layout---store layout when u wann give in portraitr mode layout-land----store layout when u wann give in landscape mode
Comments
Post a Comment