Android ICS 联系人应用程序 SDK 元素
我一直在研究 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个名为 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
实际上它是
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/