Skip to content

Commit

Permalink
修复统计行字体显示bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyanbin committed Nov 15, 2017
1 parent c5649e8 commit 590a6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public int getBackGroundColor() {
public boolean isDraw(Column column) {
return true;
}
}).setColumnTitleGridStyle(new LineStyle().setColor(ContextCompat.getColor(this,R.color.arc_text)))
}).setColumnTitleGridStyle(new LineStyle().setColor(ContextCompat.getColor(this,R.color.arc_bg)))
.setColumnTitleStyle(new FontStyle().setTextColor(Color.parseColor("#ffffff")));
table.setTableData(tableData);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ private void drawContent(Canvas canvas) {
}
int right = left + width;
if (left < showRect.right) {
config.getGridStyle().fillPaint(paint);
drawVerticalGrid(canvas, left, Math.max(scaleRect.top, showRect.top)
, right, showRect.bottom, paint);

for (int j = 0; j < values.size(); j++) {
String value = values.get(j);
int bottom = (int) (top + info.getLineHeightArray()[j]*config.getZoom());
Expand Down Expand Up @@ -258,6 +256,9 @@ private void drawContent(Canvas canvas) {
}
top = bottom;
}
config.getGridStyle().fillPaint(paint);
drawVerticalGrid(canvas, left, Math.max(scaleRect.top, showRect.top)
, right, showRect.bottom, paint);
left = tempLeft + width;
} else {
break;
Expand Down

0 comments on commit 590a6ae

Please sign in to comment.