如何创建像新市场或 Google plus 这样的 UI? [英] How to create a UI like the new market or Google plus?

查看:44
本文介绍了如何创建像新市场或 Google plus 这样的 UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种官方"的方式来为 Android 创建应用程序,它的设计与新的 Android 市场 或 Google+ 应用.我的意思是可以向左/向右滑动以更改视图,将列表放在顶部等.(任何 Android 用户都可能明白我的意思)

I was wondering if there is an "official" way to create apps for Android that will have the same design as the new Android market or Google+ app. By that I mean having the possibility to slide to the left/right to change the view, have the list on the top, etc.. (any Android user probably get what I mean)

如果没有官方的方法,你有什么技巧可以重现这些效果吗?

If there is no official way, do you have any tips on how to reproduce these effets ?

推荐答案

我相信这就是你所说的Android 兼容包"

I believe this is what your referring to ' Android Compatibility Package '

http://developer.android.com/sdk/compatibility-library.html

这允许以下操作:

ViewPager:管理子视图布局的视图组,用户可以在它们之间滑动.

ViewPager: A ViewGroup that manages the layout for the child views, which the user can swipe between.

PagerAdapter:使用代表每个页面的视图填充 ViewPager 的适配器.

PagerAdapter: An adapter that populates the ViewPager with the views that represent each page.

这些在 G+ 应用中使用

These are used in the G+ app

列表片段

在市场应用程序中使用.

is used in the Market app.

您最好阅读我在顶部发布的 URL 以获得完整描述和使用.

Your best reading the URL I posted at the top for full description and use.

获得最佳实用 UI 的另一种方法是阅读 Google 官方应用程序的源代码:

Another way to get best practive UI is to read the source of the Google Official Apps:

Google IO 调度源

您可能还想查看一些 Google IO 演示文稿:

You might also want to check out some of the Google IO Presentations:

在网络上:实现 UI IO 2011

在您的手机上:All IO 2011 &2010 视频(无耻插件:p)

On your phone: All IO 2011 & 2010 Videos ( Shameless Plug :p )

这篇关于如何创建像新市场或 Google plus 这样的 UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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