From 590a6ae1fe656dc44070a9188443922fbc5f9636 Mon Sep 17 00:00:00 2001 From: Huangyb <873825232@qq.com> Date: Wed, 15 Nov 2017 09:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E8=AE=A1=E8=A1=8C?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E6=98=BE=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bin/david/smarttable/ParseModeActivity.java | 2 +- .../java/com/bin/david/form/component/TableProvider.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/bin/david/smarttable/ParseModeActivity.java b/app/src/main/java/com/bin/david/smarttable/ParseModeActivity.java index 52e29e9..0b99e5e 100644 --- a/app/src/main/java/com/bin/david/smarttable/ParseModeActivity.java +++ b/app/src/main/java/com/bin/david/smarttable/ParseModeActivity.java @@ -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); diff --git a/form/src/main/java/com/bin/david/form/component/TableProvider.java b/form/src/main/java/com/bin/david/form/component/TableProvider.java index 802bd8e..5cf728c 100644 --- a/form/src/main/java/com/bin/david/form/component/TableProvider.java +++ b/form/src/main/java/com/bin/david/form/component/TableProvider.java @@ -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()); @@ -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;