开发者

linear layout orientation changes

What i want is :

  • In portrait mode : an imageView and a text below
  • In landscape mode : an imageView on the left and a text to the right

How can i do that ? knowing that in my manifest there is a :

android:configChanges="orientati开发者_C百科on|keyboardHidden"

in this activity.


You may use an alternative resource

res/layout-port/

(or res/layout-land/) where you define your additional layout. It will be used when you have the specified orientation, otherwise it will fall back to the default layout.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜