安卓仪表盘模式 [英] Android Dashboard Pattern

查看:21
本文介绍了安卓仪表盘模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Tim Bray 的最新 Android 博客中帖子 他提到了仪表板"ui 模式(用于 Twitter 应用程序、Facebook 应用程序等的什么.这种布局是像带有按钮的 GridView 一样简单还是其他什么?

In Tim Bray's latest Android blog post he mentions the "dashboard" ui pattern (what is used for the Twitter app, Facebook app, etc. Is this layout as simple as a GridView with Buttons or is it something else?

更新:

DashboardLayout 昨晚由 Roman Nurik 发布.它是 Google IO 2010 应用中使用的布局的衍生物.

The DashboardLayout was released by Roman Nurik last night. It is a derivative of the layout used in the Google IO 2010 app.

推荐答案

您可以使用的最佳示例来自 Google I/O 2011 Android 应用程序.他们在他们的应用程序中实现了所有这些设计模式.您可以在以下链接中找到代码:

The best example you can use is from the Google I/O 2011 Android App. They implement all those design patterns in their app. You can find the code at the following link:

http://code.google.com/p/iosched/source/browse/android/res/layout/fragment_dashboard.xml?r=27a82ff10b436da5914a3961df245ff8f66b6252

2011 版本在一个片段中使用名为DashboardLayout"的自定义布局,该片段在手机和平​​板电脑特定布局中共享.DashboardLayout 中的逻辑负责所有自动布局的魔法!

The 2011 version uses a custom layout called 'DashboardLayout' in a fragment which gets shared in phone and tablet specific layouts. The logic in DashboardLayout is responsible for all the auto layout magic!

这篇关于安卓仪表盘模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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