Commit 65f35ef4dff7b2d412ad6f37dda258f3ca598ed1
Exists in
yxb_dev
and in
1 other branch
Merge branch 'developer' into yxb_dev
# Conflicts: # app/libs/processor.jar
Showing
4 changed files
with
11 additions
and
1 deletions
Show diff stats
app/libs/processor.jar
No preview for this file type
app/src/main/java/com/shunzhi/parent/ui/fragment/ReportFragment.java
... | ... | @@ -195,6 +195,7 @@ public class ReportFragment extends BaseMVPCompatFragment<MyChildContract.MyChil |
195 | 195 | } |
196 | 196 | tvName.setText(childBean.getStudentName()); |
197 | 197 | } |
198 | + chengZhangFragment1.setChildJson(jsonStr); | |
198 | 199 | AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.CURRCHILDJSONSTR, jsonStr); |
199 | 200 | createSchoolMenu(); |
200 | 201 | } | ... | ... |
app/src/main/java/com/shunzhi/parent/ui/fragment/report/ChengZhangFragment.java
... | ... | @@ -99,6 +99,10 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep |
99 | 99 | layout_qingjia.setOnClickListener(this); |
100 | 100 | type = getArguments().getString("type"); |
101 | 101 | jsonStr = getArguments().getString("jsonStr"); |
102 | + show(); | |
103 | + } | |
104 | + | |
105 | + private void show(){ | |
102 | 106 | Gson g = new Gson(); |
103 | 107 | if (type.equals(TYPE_CHENGZHANG)) { |
104 | 108 | layout_chengzhang.setVisibility(View.VISIBLE); |
... | ... | @@ -247,4 +251,9 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep |
247 | 251 | lp.alpha = bgAlpha; //0.0-1.0 |
248 | 252 | getActivity().getWindow().setAttributes(lp); |
249 | 253 | } |
254 | + | |
255 | + public void setChildJson(String jsonStr) { | |
256 | + this.jsonStr=jsonStr; | |
257 | + show(); | |
258 | + } | |
250 | 259 | } | ... | ... |
app/src/main/res/layout/layout_consult_content.xml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | android:layout_width="match_parent" |
4 | 4 | android:layout_height="@dimen/size_dp_100" |
5 | - android:layout_marginBottom="@dimen/size_dp_10" | |
5 | + android:layout_marginTop="@dimen/size_dp_10" | |
6 | 6 | android:orientation="vertical"> |
7 | 7 | |
8 | 8 | <LinearLayout | ... | ... |