如何在Android的多面板布局 [英] How to create multi-pane layout in android

查看:523
本文介绍了如何在Android的多面板布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使画面在我所使用的多窗格layout.In屏幕,左侧显示自定义列表视图,右侧显示细节点击item.When我曾在写真从这个节目只有单一的屏幕上运行的应用程序例如list.But上lanscape模式是显示列表和详细页面上screen.Please建议我能做些什么或例子。

I want to make screen in which I have used multi pane layout.In screen ,left side show custom list view and right hand side show detail about click item.When I have run app in protrait from that show only single screen for example list.But on lanscape mode that is show list and detail page on screen.Please suggest me what can i do or example.

推荐答案

这是与片段很容易

和我想这是你想要什么。

And I think this is exactly what you want.

Android的介绍片段的Andr​​oid 3.0(API级别11),主要是为了支持在大屏幕上更具动感和灵活的用户界面设计,如平板电脑。

提示:

如果您更新您的Eclipse SDK和ADT插件(如果您正在使用它)。你甚至可以创建基于片段例如一个新的项目!这是非常丰富和易于调节。 你的项目必须有11个的最低SDK版本。

If you update your SDK, and ADT plugin for Eclipse (If you are using it). You can even create a new project based on a fragment example! Which is very informative and easy to adjust. You project has to have a minimum SDK version of 11.

通常情况下,将有配置预选赛的检查,如果你有一个小的手机屏幕或大平板电脑屏幕,这个检查是很容易找到的实例项目(对不起,我没有太多的时间去寻找一个很好的例子给你)。现在,您可以从大景观更改此配置预选赛,或任何你想要的。

Normally it would check with a configuration qualifier if you have a small handset screen or a big tablet screen, this check is fairly easy to find in your example project (Sorry I don't have much time to find a good example for you). Now you can change this configuration qualifier from large to large-landscape, or whatever you want.

这篇关于如何在Android的多面板布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆