Skip to content

Commit

Permalink
上传
Browse files Browse the repository at this point in the history
  • Loading branch information
puy1017 committed Jul 30, 2019
1 parent effccf8 commit 703f5be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void init(Context context) {
center_ll.setId(R.id.NetworkDelayMonitor_center_ll);
center_ll.setLayoutParams(new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT));
dp2px(176f, getContext())));

node_ll.setOrientation(LinearLayout.HORIZONTAL);
node_ll.setLayoutParams(new LinearLayout.LayoutParams(
Expand Down Expand Up @@ -379,6 +379,9 @@ protected void onDraw(Canvas canvas) {
setMyText(canvas, netDevice.getDelay(), (int) (x + imgHeight_base / 2f - mX),
imgHeight_base + dp2px(15, getContext()), Type.DEVICE);
}
if(netDevices.size() == 0){
mY = screen_high + dp2px(84.5f, getContext());
}

//绘制节点
index = netNodes.size() / 2;
Expand Down

0 comments on commit 703f5be

Please sign in to comment.