如何创建像新的市场或谷歌,加上一个用户界面? [英] How to create a UI like the new market or Google plus?
问题描述
我在想,如果有一个官方的方式来创建应用程序为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)
如果没有官方的方式,你有没有对如何重现这些effets任何提示?
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 '
<一个href="http://developer.android.com/sdk/compatibility-library.html">http://developer.android.com/sdk/compatibility-library.html
这使得以下内容:
ViewPager:用于管理布局的子视图,用户可以与轻扫的ViewGroup
ViewPager: A ViewGroup that manages the layout for the child views, which the user can swipe between.
PagerAdapter:用于填充ViewPager与重新present每个页面访问量的适配器
PagerAdapter: An adapter that populates the ViewPager with the views that represent each page.
这些都是在G +应用程序使用
These are used in the G+ app
ListFragment
ListFragment
时,用在市场应用
您最佳的阅读我张贴在充分的说明和使用上的URL。
Your best reading the URL I posted at the top for full description and use.
另一种方式来获得最好的practive UI是阅读谷歌官方应用程序的源代码:
Another way to get best practive UI is to read the source of the Google Official Apps:
<一个href="http://$c$c.google.com/p/iosched/source/browse/#hg/android/src/com/google/android/apps/iosched/ui">Google IO章附表来源
您可能还需要检查出一些谷歌IO presentations的:
You might also want to check out some of the Google IO Presentations:
在网站:<一href="http://www.google.com/events/io/2011/sessions/designing-and-implementing-android-uis-for-phones-and-tablets.html">Implementing用户界面IO 2011
在您的电话:所有IO 2011&放大器; 2010视频(无耻插头:P)
On your phone: All IO 2011 & 2010 Videos ( Shameless Plug :p )
这篇关于如何创建像新的市场或谷歌,加上一个用户界面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!