replace layout on orientation change

前端 未结 6 1928
天涯浪人
天涯浪人 2020-12-01 13:03

My app has a webview and some buttons inside a LinerLayout.

the problem is, I want the buttons to be on bottom in portrait mode and on left in landscape mode while t

6条回答
  •  Happy的楠姐
    2020-12-01 13:32

    You can add values-(configuration that you require - eg. land,portrait) folder under resources and mention the layout you need for this configuration.. It's as simple as that.

    Please checkout the below link for further information- http://developer.android.com/training/multiscreen/screensizes.html#TaskUseAliasFilters

提交回复
热议问题