AlvinQiang

Results 3 issues of AlvinQiang

The specified child already has a parent. You must call removeView() on the child's parent first.

最近在总结项目时发现了一个bug,CommonTabLayout配合FrameLayout搭建主页M(MainActivity,里边有四个a,b,c,d四个fragment),从a跳转另一个页面N(NewPageActivity),点击N里的按钮后会返回M,并让当前的fragment跳转到b上边。问题来了: 返回时,tabLayout选中了第二个,但是fragment却没有切换过来,并且报了Can not perform this action after onSaveInstanceState这个错误, /** 初始化fragments */ private void initFragments() { for (Fragment fragment : mFragments) { mFragmentManager.beginTransaction().add(mContainerViewId, fragment).hide(fragment).**commit**(); } setFragments(0); } /** 界面切换控制 */ public...

我是用的RecyclerView,2列的网格布局,给RecyclerView添加了个头视图以后使用DividerGridItemDecoration添加分割线,但是两列之间的分割线没有了,去掉头视图是有分割线,请问有没有遇到过这种情况?