Android ICS 联系人应用程序 SDK 元素

发布于 2024-12-10 18:42:13 字数 172 浏览 5 评论 0原文

我一直在研究 AlphabetIndexer 和SectionIndexer,并注意到 Ice Cream Sandwich 模拟器中的联系人列表 UI 与以前的 Android 版本略有不同(特别是在滚动联系人时如何弹出当前字符)。

有谁知道他们在 ICS 中使用什么 SDK API?或者如果他们用手滚动这个?

I have been looking at AlphabetIndexer and SectionIndexer and noticed in the Ice Cream Sandwich emulator that the Contact list UI is a little bit different now than in the previous Android versions (specifically how they pop up the current character when scrolling through contacts).

Does anyone know what SDK API they are using for this in ICS? Or if they are hand-rolling this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷清清 2024-12-17 18:42:13

这是一个名为 PinnedHeaderListView 的自定义解决方案。

它被添加到 Froyo 中(出于某种原因,我认为它已被添加到 ICS 中,哎呀!)...

您可以在这里找到它的源代码:https://android.googlesource.com/platform/packages/apps/Contacts/+/froyo-release/src/com/android/contacts/PinnedHeaderListView.java

It's a custom solution called PinnedHeaderListView.

It was added in Froyo (for some reason I thought it had been added in ICS, oops!)...

You can find it's source code here: https://android.googlesource.com/platform/packages/apps/Contacts/+/froyo-release/src/com/android/contacts/PinnedHeaderListView.java

⊕婉儿 2024-12-17 18:42:13

实际上它是 PinnedHeaderListView,这个小部件没有公共 API,但您可以在您的项目中实现。只需从这里获取源代码:
https://android.googlesource.com/platform/packages/apps/Contacts/+/froyo-release/src/com/android/contacts/PinnedHeaderListView.java
查看此处的示例项目:http://code.google.com/p/android-游乐场/

Indeed it is PinnedHeaderListView, this widget doesn't have a public API, but you can implement is on your projects. Just grab the source from here:
https://android.googlesource.com/platform/packages/apps/Contacts/+/froyo-release/src/com/android/contacts/PinnedHeaderListView.java
Look at an example project here: http://code.google.com/p/android-playground/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文