{"action":"opened","issue":{"url":"https://api.github.com/repos/qstumn/VerticalTabLayout/issues/5","repository_url":"https://api.github.com/repos/qstumn/VerticalTabLayout","labels_url":"https://api.github.com/repos/qstumn/VerticalTabLayout/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/qstumn/VerticalTabLayout/issues/5/comments","events_url":"https://api.github.com/repos/qstumn/VerticalTabLayout/issues/5/events","html_url":"https://github.com/qstumn/VerticalTabLayout/issues/5","id":206432181,"number":5,"title":" tabLayout.setTabSelected(position)时，indicator没有移动","user":{"login":"pngfi","id":11682173,"avatar_url":"https://avatars.githubusercontent.com/u/11682173?v=3","gravatar_id":"","url":"https://api.github.com/users/pngfi","html_url":"https://github.com/pngfi","followers_url":"https://api.github.com/users/pngfi/followers","following_url":"https://api.github.com/users/pngfi/following{/other_user}","gists_url":"https://api.github.com/users/pngfi/gists{/gist_id}","starred_url":"https://api.github.com/users/pngfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pngfi/subscriptions","organizations_url":"https://api.github.com/users/pngfi/orgs","repos_url":"https://api.github.com/users/pngfi/repos","events_url":"https://api.github.com/users/pngfi/events{/privacy}","received_events_url":"https://api.github.com/users/pngfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-09T08:05:48Z","updated_at":"2017-02-09T08:05:48Z","closed_at":null,"body":"我使用setupwithFragment方法，然后我在Actvity的onCreate方法中调用tabLayout.setTabSelected(position)。\r\n首先我遇到的第一个问题是fragment 重复添加， \r\nList<Fragment> addedFragments = mManager.getFragments();\r\n            if ((addedFragments == null || !addedFragments.contains(fragment)) && mContainerResid != 0) {\r\n                ft.add(mContainerResid, fragment);\r\n            }\r\n这里的contains判断似乎并没有用\r\n\r\n第二个问题是调用tabLayout.setTabSelected(position) tabview的文字状态改变了，但是indicator并没有移动。\r\n"}}
{"actor":{"display_login":"pngfi"}}