Commit 384118a2ec1b7dbfbf4c735efc81af89c1433a86

Authored by 姚旭斌
2 parents aa386a0f a5bec9bb

Merge branch 'developer' into yxb_dev

app/src/main/java/com/shunzhi/parent/ui/fragment/CePingFragment.java
@@ -83,7 +83,6 @@ public class CePingFragment extends BaseMVPCompatFragment<CepingContract.CePingP @@ -83,7 +83,6 @@ public class CePingFragment extends BaseMVPCompatFragment<CepingContract.CePingP
83 textAndImg_zxlx.setImgs(R.drawable.zxlx, R.drawable.zxlx); 83 textAndImg_zxlx.setImgs(R.drawable.zxlx, R.drawable.zxlx);
84 textAndImg_zxlx.setOnClickListener(this); 84 textAndImg_zxlx.setOnClickListener(this);
85 textAndImg_zxlx.setSelect(true); 85 textAndImg_zxlx.setSelect(true);
86 -  
87 initListeners(view); 86 initListeners(view);
88 floatingActionButton.setOnClickListener(new View.OnClickListener() { 87 floatingActionButton.setOnClickListener(new View.OnClickListener() {
89 @Override 88 @Override
app/src/main/java/com/shunzhi/parent/views/TextAndImgShowView.java
@@ -13,6 +13,7 @@ import android.widget.TextView; @@ -13,6 +13,7 @@ import android.widget.TextView;
13 13
14 import com.bumptech.glide.Glide; 14 import com.bumptech.glide.Glide;
15 import com.share.mvpsdk.utils.DisplayUtils; 15 import com.share.mvpsdk.utils.DisplayUtils;
  16 +import com.share.mvpsdk.utils.ToastUtils;
16 import com.shunzhi.parent.AppConfig; 17 import com.shunzhi.parent.AppConfig;
17 import com.shunzhi.parent.R; 18 import com.shunzhi.parent.R;
18 19
@@ -82,10 +83,11 @@ public class TextAndImgShowView extends LinearLayout { @@ -82,10 +83,11 @@ public class TextAndImgShowView extends LinearLayout {
82 public void setWidth(Activity activity, View layout_control) { 83 public void setWidth(Activity activity, View layout_control) {
83 LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); 84 LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
84 params.width = (DisplayUtils.getScreenWidthPixels(activity) - 85 params.width = (DisplayUtils.getScreenWidthPixels(activity) -
85 - DisplayUtils.dp2px(layout_control.getPaddingLeft() + layout_control.getPaddingRight() 86 + DisplayUtils.dp2px(layout_control.getPaddingLeft() + layout_control.getPaddingRight()+20
86 )) / 4; 87 )) / 4;
87 layout.setLayoutParams(params); 88 layout.setLayoutParams(params);
88 LayoutParams params1 = new LayoutParams(DisplayUtils.px2dp(110), DisplayUtils.px2dp(110)); 89 LayoutParams params1 = new LayoutParams(DisplayUtils.px2dp(110), DisplayUtils.px2dp(110));
  90 + ToastUtils.showToast(DisplayUtils.px2dp(110)+"");
89 image.setLayoutParams(params1); 91 image.setLayoutParams(params1);
90 } 92 }
91 } 93 }