{"action":"created","issue":{"url":"https://api.github.com/repos/drakeet/MultiType/issues/246","repository_url":"https://api.github.com/repos/drakeet/MultiType","labels_url":"https://api.github.com/repos/drakeet/MultiType/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/drakeet/MultiType/issues/246/comments","events_url":"https://api.github.com/repos/drakeet/MultiType/issues/246/events","html_url":"https://github.com/drakeet/MultiType/issues/246","id":389623151,"node_id":"MDU6SXNzdWUzODk2MjMxNTE=","number":246,"title":"悬停吸附功能的大胆设想","user":{"login":"manondidi","id":18095722,"node_id":"MDQ6VXNlcjE4MDk1NzIy","avatar_url":"https://avatars0.githubusercontent.com/u/18095722?v=4","gravatar_id":"","url":"https://api.github.com/users/manondidi","html_url":"https://github.com/manondidi","followers_url":"https://api.github.com/users/manondidi/followers","following_url":"https://api.github.com/users/manondidi/following{/other_user}","gists_url":"https://api.github.com/users/manondidi/gists{/gist_id}","starred_url":"https://api.github.com/users/manondidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manondidi/subscriptions","organizations_url":"https://api.github.com/users/manondidi/orgs","repos_url":"https://api.github.com/users/manondidi/repos","events_url":"https://api.github.com/users/manondidi/events{/privacy}","received_events_url":"https://api.github.com/users/manondidi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-11T07:05:12Z","updated_at":"2018-12-11T23:12:51Z","closed_at":"2018-12-11T23:12:51Z","author_association":"NONE","body":"能否提供 多类型悬停吸顶的支持 或者示例\r\n众所周知,悬停吸顶 在android上越来越常见了\r\n\r\n而且复杂的场景下 有可能 每个悬停的item也有可能是多类型的\r\n我认为可以再multitype中加入支持, 比方说 一个普通的item, \r\n如果他所绑定的model是特定类型的(集成某个父类),那么就让这个item 具有悬停功能,\r\n把item 和悬停item(ItemDecoration) 都对开发者来说都是普通的一个 item\r\n只是 model的父类是否为某个特殊的类,如果他继承这个类,他就悬停,不继承就不悬停\r\n\r\n我在使用multitype的过程中 对悬停一直没有一个非常好的解决方案,ItemDecoration方式接入成本略高,\r\n还有一些其他的开源的集成方案 可能都要让我去用他的adapter,希望作者可以得到重视,悬停吸附效果\r\n至于把悬停功能对外暴露成一个普通的item而通过是否为特殊model来控制悬停是我的抛砖引玉,因为我在ios上是这么处理的,封装了这样的一层\r\n"},"comment":{"url":"https://api.github.com/repos/drakeet/MultiType/issues/comments/446398803","html_url":"https://github.com/drakeet/MultiType/issues/246#issuecomment-446398803","issue_url":"https://api.github.com/repos/drakeet/MultiType/issues/246","id":446398803,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjM5ODgwMw==","user":{"login":"drakeet","id":5214214,"node_id":"MDQ6VXNlcjUyMTQyMTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5214214?v=4","gravatar_id":"","url":"https://api.github.com/users/drakeet","html_url":"https://github.com/drakeet","followers_url":"https://api.github.com/users/drakeet/followers","following_url":"https://api.github.com/users/drakeet/following{/other_user}","gists_url":"https://api.github.com/users/drakeet/gists{/gist_id}","starred_url":"https://api.github.com/users/drakeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drakeet/subscriptions","organizations_url":"https://api.github.com/users/drakeet/orgs","repos_url":"https://api.github.com/users/drakeet/repos","events_url":"https://api.github.com/users/drakeet/events{/privacy}","received_events_url":"https://api.github.com/users/drakeet/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T23:12:51Z","updated_at":"2018-12-11T23:12:51Z","author_association":"OWNER","body":"抱歉，MultiType 只负责类型分发，你说的这不是它的范畴，不应该在 MultiType 层面实现。"}}
{"actor":{"display_login":"drakeet"}}