简体   繁体   English

如何在Android中创建像Instagram这样的分段listview

[英]how to create sectionised listview like instagram in android

I have searched a lot to make sections in a ListView which will be exactly like Instagram 我已经搜索了很多内容以在ListView创建部分,这与Instagram完全一样

Edit profile      edit
Find Friend       search
------------------------------
Friend Request
------------------------------

kumar             accept
sheila            accept
------------------------------
------------------------------

I have something like the below examples: 我有类似以下示例的内容:

Example 1 例子1

Example 2 例子2

I haven't found exactly what I want. 我还没有找到我想要的东西。 I have been through many blogs and the GitHub repository, but up until now I haven't gotten the exact method. 我浏览过许多博客和GitHub存储库,但直到现在我还没有确切的方法。 I would really be thankful if anybody could help me. 如果有人可以帮助我,我将非常感激。

You should read about SectionIndexer. 您应该阅读有关SectionIndexer的信息。

This could be helpful: 这可能会有所帮助:

Android: how to use SectionIndexer Android:如何使用SectionIndexer

http://bartinger.at/listview-with-sectionsseparators/ http://bartinger.at/listview-with-sectionsseparators/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM