如何使用多面板布局与ViewPager [英] How to use Multi-pane layouts with ViewPager

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

问题描述

Android的设计指导方针建议使用多面板布局,但就实际执行这个有没有给出例子。具体来说我指的是在个人中的指导原则显示的应用程序配合使用 ViewPager 如双窗格布局。

The Android Design guidelines suggest using Multi-pane layouts, but as far as actually implementing this there are no examples given. Specifically I'm referring to the dual-pane layout used in conjunction with ViewPager like in the People app shown in the guidelines.

有没有人有一些建议或例子给在执行本?

Does anyone have some advice or examples to give on implementing this?

在屏幕截图:

您可以使用 ViewPager 刷卡来回之间的关于更新列表,也可以在照片上点按页面上。你可以看到更新标签中的一小部分,而观看凡是你必须在关于设置页,反之亦然。具体而言,我想知道如何创建这个多窗格布局。的屏幕截图是从个人在应用程序的冰淇淋三明治

You can swipe with ViewPager back and forth between the About and Updates lists or you can tap on the photos to page over. You can see a small part of the Updates tab while viewing whatever you have in the About tab and visa versa. Specifically, I want to know how to create this multi-pane layout. The screen shot is from the People app in Ice Cream Sandwich.

解决的:

我结束了创建我自己的开源库,这个小程序。您可以在这个地址找到它: https://bitbucket.org/adneal/tabcarousellib/wiki/Home

I ended up creating my own open sourced library for this widget. You can find it at this address: https://bitbucket.org/adneal/tabcarousellib/wiki/Home

推荐答案

首先,因为我得到了你想要实现机器人的SPLITVIEW。

First of all as I got you want to implement the SplitView in android.

如果是的话那么使用此链接来获得碎片的开发者网站。 使用此的开发者网站演示。

If yes then Use this link to get information of fragments from developer site. Use this Demo of developer site.

如果没有得到解决方案,然后使用此演示示例:<一href="https://github.com/k9mail/splitview/blob/master/example/src/com/fsck/example/splitview/Home.java"相对=nofollow>演示

If not getting solution then use this Demo Example : Demo

如果它仍然不是你想要的话也让我知道了什么​​。

If still its not what you want then also let me know.

我会想帮你。

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

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