viewPager = (ViewPager) view.findViewById(R.id.fragment_movie_viewpager);
<BUG>viewPager.setAdapter(new MoviePagerAdapter(getFragmentManager()));
</BUG>
tabLayout = (TabLayout) view.findViewById(R.id.fragment_movie_tablayout);
tabLayout.setTabMode(TabLayout.MODE_FIXED);
<BUG>if (ViewCompat.isLaidOut(tabLayout)) {
tabLayout.setupWithViewPager(viewPager);
} else {
tabLayout.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
tabLayout.setupWithViewPager(viewPager);
tabLayout.removeOnLayoutChangeListener(this);</BUG>
}

viewPager = (ViewPager) view.findViewById(R.id.fragment_movie_viewpager);
viewPager.setAdapter(new MoviePagerAdapter(getChildFragmentManager()));
tabLayout = (TabLayout) view.findViewById(R.id.fragment_movie_tablayout);
tabLayout.setTabMode(TabLayout.MODE_FIXED);
tabLayout.post(new Runnable() {
@Override
public void run() {
tabLayout.setupWithViewPager(viewPager);
}
