This library is able to remove, add and swap specify Fragment when you use ViewPager.
FragmentStateViewPager that is provided by Android SDK or Support Library can only remove or add Fragment to last position. If you do that bad performance...
THis library can do that and have good performance.
You write below code in your build.gradle
dependencies {
compile 'net.numa08:dynamicfragmentpageradapter:0.7.0'
}