{"id":19847041,"url":"https://github.com/polidea/android-section-list","last_synced_at":"2025-05-01T21:31:47.308Z","repository":{"id":16089776,"uuid":"18834498","full_name":"Polidea/android-section-list","owner":"Polidea","description":"Provides implementation of list which is divided to sections","archived":false,"fork":false,"pushed_at":"2016-08-03T13:30:53.000Z","size":593,"stargazers_count":15,"open_issues_count":7,"forks_count":5,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-04-16T12:06:50.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polidea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-16T09:39:27.000Z","updated_at":"2024-04-16T12:06:50.616Z","dependencies_parsed_at":"2022-08-30T17:41:51.773Z","dependency_job_id":null,"html_url":"https://github.com/Polidea/android-section-list","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2Fandroid-section-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2Fandroid-section-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2Fandroid-section-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2Fandroid-section-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polidea","download_url":"https://codeload.github.com/Polidea/android-section-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278377,"owners_count":17285080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T13:13:16.102Z","updated_at":"2024-11-12T13:13:17.155Z","avatar_url":"https://github.com/Polidea.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n__This repository is no longer maintained. Issue reports and pull requests will not be attended.__\n\n---\n\n# Overview\nThis project provides listview implementation - divided in sections. The header of top section is sticky at the top of the list. It is similar to sectioned list from iOS. You Should checkout the project from mercurial repository and use it as external android library project. You need to understand how library projects are used - it is described in android's documentation here: http://developer.android.com/guide/developing/projects/projects-eclipse.html. \nFor usage see below.\n\n# Usage\nExample activity using the list is part of the project here: https://github.com/Polidea/android-section-list/blob/master/src/pl/polidea/sectionedlist/SectionListActivity.java\n\nMake sure to specify SectionListViewTheme (or an equivalent) as theme in your activity in manifest (see issue#2).\n\n## SectionListView\nIn order to use SectionListView,  you can either add the SectionListView object in \nthe code or add it in the .xml layout similar to [https://github.com/Polidea/android-section-list/blob/master/res/layout/main.xml Layout Example]. SectionListView only accepts SectionListAdapter or class derived from it. Be careful - your SectionListView HAVE TO be inside FrameLayout - with (fill_parent, fill_parent) layout parameters.\n\n## SectionListAdapter\nThe adapter wraps around any other adapter that provides content. \nThe wrapped adapter should return items of the SectionListItem type. \nYou should extend from this class and write your own implementation of setSectionText and getSectionView  \nin case you want to provide your own view for section header. \nEach SectionListItem contains section name, all items with the same section name should be placed next \nto each other, otherwise there will be two different sections created.\n\n## OnItemClickListener\nThe SectionListAdapter supports also wrapped OnItemClickListener. \nIt is enough to register your original onItemClickListener with setOnItemClickListener and \nthen register the adapter as listener in SectionListView. T\nhat's all - adapter will recalculate the position so that your original \nlistener's methods are called with the right item position.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolidea%2Fandroid-section-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolidea%2Fandroid-section-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolidea%2Fandroid-section-list/lists"}