{"id":13643118,"url":"https://github.com/hanhailong/FlowTag","last_synced_at":"2025-04-20T21:32:58.413Z","repository":{"id":71886980,"uuid":"44597341","full_name":"hanhailong/FlowTag","owner":"hanhailong","description":"Android流式布局，支持点击、单选、多选，支持初始化选中标签（只针对单选和多选模式），适合用于产品标签等，用法采用Adapter模式，和ListView、GridView用法一样！！！","archived":false,"fork":false,"pushed_at":"2017-06-22T07:04:35.000Z","size":104,"stargazers_count":896,"open_issues_count":21,"forks_count":175,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-09T14:41:58.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanhailong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-20T09:55:43.000Z","updated_at":"2024-10-04T08:13:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"4426404c-c332-47d4-ade1-54c973683122","html_url":"https://github.com/hanhailong/FlowTag","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanhailong%2FFlowTag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanhailong%2FFlowTag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanhailong%2FFlowTag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanhailong%2FFlowTag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanhailong","download_url":"https://codeload.github.com/hanhailong/FlowTag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965547,"owners_count":21352925,"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-08-02T01:01:42.012Z","updated_at":"2025-04-20T21:32:58.159Z","avatar_url":"https://github.com/hanhailong.png","language":"Java","funding_links":[],"categories":["布局"],"sub_categories":[],"readme":"# FlowTagLayout\nAndroid流式布局，支持点击、单选、多选等，适合用于产品标签等，用法采用Adapter模式，和ListView、GridView用法一样！\n\n2016/6/26号新添加初始化标签功能，使用非常简单，只要你的Adapter实现OnInitSelectedPosition即可，对于点击模式是不存在初始化标签一说的；对于单选模式来说，如果有多个初始化选择，则默认去第一个；对于多选来说正常使用！！！\n\n****\n\n##特色\n\n* 填充数据和ListView、GridView用法一样使用Adapter，更新数据直接通过adapter.notifyDataChanged来更新\n* 支持点击、单选、多选事件\n* 三种模式：FLOW_TAG_CHECKED_NONE、FLOW_TAG_CHECKED_SINGLE、FLOW_TAG_CHECKED_MULTI\n* 支持OnTagClickListener单点事件\n* 支持OnTagSelectListener单选、多选事件\n\n****\n\n#效果图\n\n![image](https://github.com/hanhailong/AndroidStudyResources/blob/master/screenshot/flow_tag.gif?raw=true)\n\n#版本更新\n\n##2016/6/26\n* 添加初始化选中标签\n    * 单选模式下初始化标签只有第一个起作用\n    * 多选模式下只要设置初始化选中就可以\n* 添加初始化选中标签代码示例\n\t * Adapter实现OnInitSelectedPosition接口\n\t * 实现接口中isSelectedPosition方法就可以，选中返回true，不选中默认返回false\n\t \n\t \n\t\t\t public class TagAdapter\u003cT\u003e extends BaseAdapter implements OnInitSelectedPosition {\n\t\t\t @Override\n\t\t    \t\tpublic boolean isSelectedPosition(int position) {\n\t\t        \tif (position % 2 == 0) {\n\t\t            \treturn true;\n\t\t        \t}\n\t\t        \treturn false;\n\t\t    \t}\n\t\t\t }\n    \n\n#TODO\n\n* 复用View...\n\n\n#联系我\n\n如果大家在使用过程中遇到任何问题都可以联系我，谢谢！！！最好是发邮件，我每天都会抽时间看一下我的邮箱：hanhailong.cool@163.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanhailong%2FFlowTag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanhailong%2FFlowTag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanhailong%2FFlowTag/lists"}