{"action":"created","issue":{"url":"https://api.github.com/repos/Jude95/RollViewPager/issues/17","repository_url":"https://api.github.com/repos/Jude95/RollViewPager","labels_url":"https://api.github.com/repos/Jude95/RollViewPager/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Jude95/RollViewPager/issues/17/comments","events_url":"https://api.github.com/repos/Jude95/RollViewPager/issues/17/events","html_url":"https://github.com/Jude95/RollViewPager/issues/17","id":158087779,"number":17,"title":"LoopPagerAdapter的notifydatasetchange问题","user":{"login":"xxwywzy","id":8501941,"avatar_url":"https://avatars.githubusercontent.com/u/8501941?v=3","gravatar_id":"","url":"https://api.github.com/users/xxwywzy","html_url":"https://github.com/xxwywzy","followers_url":"https://api.github.com/users/xxwywzy/followers","following_url":"https://api.github.com/users/xxwywzy/following{/other_user}","gists_url":"https://api.github.com/users/xxwywzy/gists{/gist_id}","starred_url":"https://api.github.com/users/xxwywzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxwywzy/subscriptions","organizations_url":"https://api.github.com/users/xxwywzy/orgs","repos_url":"https://api.github.com/users/xxwywzy/repos","events_url":"https://api.github.com/users/xxwywzy/events{/privacy}","received_events_url":"https://api.github.com/users/xxwywzy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-02T08:41:03Z","updated_at":"2016-06-06T12:29:12Z","closed_at":null,"body":"不好意思又来了。。我用了LoopPagerAdapter的notifydatasetchange方法，但是使用后似乎向左滑动会出现问题，在第一张图时会无法向左滑动。。。"},"comment":{"url":"https://api.github.com/repos/Jude95/RollViewPager/issues/comments/223944744","html_url":"https://github.com/Jude95/RollViewPager/issues/17#issuecomment-223944744","issue_url":"https://api.github.com/repos/Jude95/RollViewPager/issues/17","id":223944744,"user":{"login":"Jude95","id":7901171,"avatar_url":"https://avatars.githubusercontent.com/u/7901171?v=3","gravatar_id":"","url":"https://api.github.com/users/Jude95","html_url":"https://github.com/Jude95","followers_url":"https://api.github.com/users/Jude95/followers","following_url":"https://api.github.com/users/Jude95/following{/other_user}","gists_url":"https://api.github.com/users/Jude95/gists{/gist_id}","starred_url":"https://api.github.com/users/Jude95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jude95/subscriptions","organizations_url":"https://api.github.com/users/Jude95/orgs","repos_url":"https://api.github.com/users/Jude95/repos","events_url":"https://api.github.com/users/Jude95/events{/privacy}","received_events_url":"https://api.github.com/users/Jude95/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T12:29:12Z","updated_at":"2016-06-06T12:29:12Z","body":"这真是个问题。确实notifyDataSetChange()会重置位置。\r\n只有在第一次ViewPager还没有正式启动的时候我可以将位置无消耗的设置到MAX_INT/2。\r\n然后在notifydatasetchange或者其他任何时候...我再次移动当前位置到MAX_INT/2，ViewPager会计算View位置计算到10多亿会直接ANR。\r\n所以我处理了ANR就导致notifydatasetchange的移动没生效。这是个BUG。而且无解...\r\n现在我的方案是一开始MAX_INT/2，notifydatasetchange的时候只设置到realcount*3..因为一直向左自动播放，所以一般发现不了。。\r\n这样还好吧。。1.3.2已改。"}}
{"actor":{"display_login":"Jude95"}}