From 01e0f96ba48fe7d8087889ef6280a97b1bf89e62 Mon Sep 17 00:00:00 2001 From: wangyiqian Date: Sun, 27 Nov 2022 21:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=BF=E6=8C=89=E9=AB=98=E4=BA=AE=E7=BA=BF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=99=9A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/wangyiqian/stockchart/childchart/kchart/KChart.kt | 4 ++++ .../wangyiqian/stockchart/childchart/kdjchart/KdjChart.kt | 4 ++++ .../wangyiqian/stockchart/childchart/macdchart/MacdChart.kt | 4 ++++ .../stockchart/childchart/volumechart/VolumeChart.kt | 4 ++++ samples/build.gradle | 4 ++-- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kchart/KChart.kt b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kchart/KChart.kt index 59f7b6f..92d4ddf 100644 --- a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kchart/KChart.kt +++ b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kchart/KChart.kt @@ -224,6 +224,8 @@ open class KChart( stockChart.getConfig().highlightHorizontalLineColor highlightHorizontalLinePaint.strokeWidth = stockChart.getConfig().highlightHorizontalLineWidth + highlightHorizontalLinePaint.pathEffect = + stockChart.getConfig().highlightHorizontalLinePathEffect var highlightHorizontalLineLeft = getChartDisplayArea().left var highlightHorizontalLineRight = getChartDisplayArea().right @@ -339,6 +341,8 @@ open class KChart( stockChart.getConfig().highlightVerticalLineColor highlightVerticalLinePaint.strokeWidth = stockChart.getConfig().highlightVerticalLineWidth + highlightVerticalLinePaint.pathEffect = + stockChart.getConfig().highlightVerticalLinePathEffect tmp2FloatArray[0] = highlight.getIdx() + 0.5f tmp2FloatArray[1] = 0f diff --git a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kdjchart/KdjChart.kt b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kdjchart/KdjChart.kt index 351e5f8..ceb5415 100644 --- a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kdjchart/KdjChart.kt +++ b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/kdjchart/KdjChart.kt @@ -188,6 +188,8 @@ class KdjChart(stockChart: IStockChart, chartConfig: KdjChartConfig) : stockChart.getConfig().highlightHorizontalLineColor highlightHorizontalLinePaint.strokeWidth = stockChart.getConfig().highlightHorizontalLineWidth + highlightHorizontalLinePaint.pathEffect = + stockChart.getConfig().highlightHorizontalLinePathEffect var highlightHorizontalLineLeft = getChartDisplayArea().left var highlightHorizontalLineRight = getChartDisplayArea().right @@ -303,6 +305,8 @@ class KdjChart(stockChart: IStockChart, chartConfig: KdjChartConfig) : stockChart.getConfig().highlightVerticalLineColor highlightVerticalLinePaint.strokeWidth = stockChart.getConfig().highlightVerticalLineWidth + highlightVerticalLinePaint.pathEffect = + stockChart.getConfig().highlightVerticalLinePathEffect tmp2FloatArray[0] = highlight.getIdx() + 0.5f tmp2FloatArray[1] = 0f diff --git a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/macdchart/MacdChart.kt b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/macdchart/MacdChart.kt index 93c6272..6315aa8 100644 --- a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/macdchart/MacdChart.kt +++ b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/macdchart/MacdChart.kt @@ -225,6 +225,8 @@ class MacdChart( stockChart.getConfig().highlightHorizontalLineColor highlightHorizontalLinePaint.strokeWidth = stockChart.getConfig().highlightHorizontalLineWidth + highlightHorizontalLinePaint.pathEffect = + stockChart.getConfig().highlightHorizontalLinePathEffect var highlightHorizontalLineLeft = getChartDisplayArea().left var highlightHorizontalLineRight = getChartDisplayArea().right @@ -339,6 +341,8 @@ class MacdChart( stockChart.getConfig().highlightVerticalLineColor highlightVerticalLinePaint.strokeWidth = stockChart.getConfig().highlightVerticalLineWidth + highlightVerticalLinePaint.pathEffect = + stockChart.getConfig().highlightVerticalLinePathEffect tmp2FloatArray[0] = highlight.getIdx() + 0.5f tmp2FloatArray[1] = 0f diff --git a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/volumechart/VolumeChart.kt b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/volumechart/VolumeChart.kt index cc29445..e07744a 100644 --- a/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/volumechart/VolumeChart.kt +++ b/lib/src/main/java/com/github/wangyiqian/stockchart/childchart/volumechart/VolumeChart.kt @@ -119,6 +119,8 @@ class VolumeChart( stockChart.getConfig().highlightHorizontalLineColor highlightHorizontalLinePaint.strokeWidth = stockChart.getConfig().highlightHorizontalLineWidth + highlightHorizontalLinePaint.pathEffect = + stockChart.getConfig().highlightHorizontalLinePathEffect var highlightHorizontalLineLeft = getChartDisplayArea().left var highlightHorizontalLineRight = getChartDisplayArea().right @@ -233,6 +235,8 @@ class VolumeChart( stockChart.getConfig().highlightVerticalLineColor highlightVerticalLinePaint.strokeWidth = stockChart.getConfig().highlightVerticalLineWidth + highlightVerticalLinePaint.pathEffect = + stockChart.getConfig().highlightVerticalLinePathEffect tmp2FloatArray[0] = highlight.getIdx() + 0.5f tmp2FloatArray[1] = 0f diff --git a/samples/build.gradle b/samples/build.gradle index f295b93..1883f97 100644 --- a/samples/build.gradle +++ b/samples/build.gradle @@ -70,6 +70,6 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'com.google.android:flexbox:2.0.1' -// implementation project(':lib') - implementation 'com.github.wangyiqian:StockChart:1.1.10' + implementation project(':lib') +// implementation 'com.github.wangyiqian:StockChart:1.1.10' } \ No newline at end of file