开发者

How to have no splitview in portrait mode in android?

I was able to create a split view using fragments in landscape mode to maximize the space. So for example, I can search on the left pane and it 开发者_开发问答will show the detailed view on the right pane.

If the user switches to portrait mode during application usage, how can it be implemented in such a way that it is no longer in split view?


Android has this exact example in their code. You can specify a different layout dependent on the screen orientation. In the code you can perform a check to see what the current orientation is.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜