开发者

linear layout orientation changes

开发者 https://www.devze.com 2023-04-08 16:57 出处:网络
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

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

精彩评论

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

关注公众号