private Fragment getVisibleFragment()
{ List<Fragment> fragments = fragmentManager.getFragments(); for(Fragment fragment:fragments) { if(fragment != null && fragment.isVisible()) return fragment; } return null; }本文共 261 字,大约阅读时间需要 1 分钟。
private Fragment getVisibleFragment()
{ List<Fragment> fragments = fragmentManager.getFragments(); for(Fragment fragment:fragments) { if(fragment != null && fragment.isVisible()) return fragment; } return null; }转载于:https://my.oschina.net/u/2915671/blog/813603