创建用户界面就像Chrome浏览器Android版 [英] Create UI like Chrome for Android

查看:268
本文介绍了创建用户界面就像Chrome浏览器Android版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要实现这一行为[<一href="https://github.com/gleue/TGLStackedViewController]">https://github.com/gleue/TGLStackedViewController]在一个应用程序,我想使。

I want to implement this behaviour [https://github.com/gleue/TGLStackedViewController] in an app that I am trying to make.

最接近的事/我想达到的效果是怎样的谷歌Chrome浏览器的行为。

The closest thing/the effect that I want to achieve is how the Google Chrome browser behaves.

  1. 瓷砖/卡接口
  2. 能够当用户拉下访问导航(访问其他选项卡)的形式在地址栏
  3. 能重新安排标签以任意顺序用户希望

。图片来源于此拍摄<一个href="http://stackoverflow.com/questions/25810586/android-layout-how-to-implement-a-ui-similar-to-deck-of-cards]">Android布局:如何实现类似于扑克牌的UI SO质疑

有没有人在那里谁曾试图实现这种行为?难道你们知道的任何库,可以帮助达到这个效果?这将是非常有帮助!谢谢

Is there anyone out there who has tried to implement this kind of behavior? Do you guys know any libraries that can help achieve this effect? It would be very helpful! Thank you

推荐答案

systemUI /最近通话包,所提到的安德烈,可以是你的出发点。它增加了一个多一点的镀铬标签的平坦再现。

systemUI/Recents package, as mentioned by Andrei, can be your starting point. It adds a little more to the flat rendition of chrome tabs.

我一直在意义重构 systemUI /最近通话包自从我得到第l更新。我终于到了。

I have been meaning to refactor systemUI/Recents package ever since I got the L update. I finally got to it.

一个样本项目位于:链接

尽管ViewGroup中回收,它更新进度图(子属性),对每一个卷轴步骤中的所有儿童。这将导致滞后于大型数据集。对于几百,应该没事。

Even though the viewgroup recycles, it updates the progress map (child properties) for all children on each scroll step. This will lead to lags with large data sets. For a few hundred, it should be fine.

该示例项目使用毕加索加载和缓存图像从 LoremPixel 。由于这些都是随机的图片及可重复,可以验证他们通过查看图像的左下方正确绑定。

The sample project uses Picasso for loading and caching images from LoremPixel. Since these are random images & may repeat, you can verify that they are bound correctly by looking at bottom left of the image.

这篇关于创建用户界面就像Chrome浏览器Android版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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