fragment中嵌套viewpager,vierpager中有多个fragment不显示
fragmentsList = new ArrayList<Fragment>();
viewPager.setAdapter(new FragmentPagerAdapter(getActivity().getSupportFragmentManager(), fragmentsList));
上方 getActivity().getSupportFragmentManager() 替代为 getChildFragmentManager() 后正常
================================================
//判断ScrollView中子控件是否滑出
Rect scrollBounds = new Rect();
scrollView.getHitRect(scrollBounds);
if (childView.getLocalVisibleRect(scrollBounds)) {
//子控件至少有一个像素在可视范围内
// Any portion of the childView, even a single pixel, is within the visible window
} else {
//子控件完全不在可视范围内
// NONE of the childView is within the visible window
}
JDK1.8 安装报内部错误:61003
安装 visual c++2015 redistributable
链接 https://www.microsoft.com/en-us/download/details.aspx?id=48145