Skip to content

Commit b45bffe

Browse files
committed
调整UI
1 parent 4f367da commit b45bffe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CommonLibrary/src/main/java/com/renyu/commonlibrary/basefrag/BaseFragment.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,19 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
3535

3636
httpHelper=OKHttpHelper.getInstance();
3737
retrofit = Retrofit2Utils.getBaseRetrofit();
38-
39-
initParams();
40-
loadData();
4138
}
4239
ViewGroup parent= (ViewGroup) view.getParent();
4340
if (parent!=null) {
4441
parent.removeView(view);
4542
}
4643
return view;
4744
}
45+
46+
@Override
47+
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
48+
super.onViewCreated(view, savedInstanceState);
49+
50+
initParams();
51+
loadData();
52+
}
4853
}

CommonLibrary/src/main/res/layout/view_nav.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
android:layout_width="wrap_content"
3737
android:layout_height="wrap_content"
3838
android:layout_centerInParent="true"
39-
android:textStyle="bold"
4039
android:textSize="16sp"
4140
android:textColor="#333333"/>
4241
<LinearLayout

0 commit comments

Comments
 (0)