Android Bug 汇总

1 问题:

         FragmentStatePagerAdapter+viewpager第二次进入该fragment不显示数据

    解决方法:

         在含有ViewPager的Fragment的onCreateView方法中添加代码:

                

                    if (view != null) {

                     ViewGroup parent = (ViewGroup) view.getParent();

                     if (parent != null) {

                     parent.removeView(view);

                     }

                     return view;

                     }

                

Android Bug 汇总,布布扣,bubuko.com

Android Bug 汇总

上一篇:如何从python代码中直接访问Android的Service


下一篇:Android -- 经验分享