Fixed zero division exception in case no data in adapter
Added gradle support
Added Delegate for setPrimaryItems

Fragment with a FragmentPagerAdapter will now have setUserVisibleHint
called when shown.
Merge pull request #2 from naghtarr/gradle

Fixed zero division exception in case no data in adapter. Added gradle support.
Merge pull request #7 from AlexandreArpin/master

Added Delegate for setPrimaryItems
添加示例测试动态改变Adapter中的数据
merge from imbryk/master
修改测试democratic、