From c8630d2f84be4346c3fc4276c842de62607da4e1 Mon Sep 17 00:00:00 2001 From: Diogo Bernardino Date: Mon, 22 Jun 2020 22:25:05 +0200 Subject: [PATCH] Revert changes in demo to slider tooltip. --- mobile/build.gradle | 1 - .../src/main/java/com/db/williamchartdemo/DemoFragment.kt | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mobile/build.gradle b/mobile/build.gradle index fce0363e..76d36d83 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -51,7 +51,6 @@ android { dependencies { implementation project(path: ':williamchart') implementation project(path: ':slidertooltip') - implementation project(path: ':pointstooltip') //implementation "com.diogobernardino:williamchart:$rootProject.williamchartVersion" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72" implementation 'androidx.appcompat:appcompat:1.1.0' diff --git a/mobile/src/main/java/com/db/williamchartdemo/DemoFragment.kt b/mobile/src/main/java/com/db/williamchartdemo/DemoFragment.kt index 6b43c1ff..a4d56f85 100644 --- a/mobile/src/main/java/com/db/williamchartdemo/DemoFragment.kt +++ b/mobile/src/main/java/com/db/williamchartdemo/DemoFragment.kt @@ -7,7 +7,7 @@ import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import com.db.williamchart.ExperimentalFeature -import com.db.williamchart.pointtooltip.PointTooltip +import com.db.williamchart.slidertooltip.SliderTooltip import kotlinx.android.synthetic.main.demo_fragment.* class DemoFragment : Fragment() { @@ -30,7 +30,10 @@ class DemoFragment : Fragment() { Color.TRANSPARENT ) lineChart.animation.duration = animationDuration - lineChart.tooltip = PointTooltip() + lineChart.tooltip = + SliderTooltip().also { + it.color = Color.WHITE + } lineChart.onDataPointTouchListener = { index, _, _ -> lineChartValue.text = lineSet.toList()[index]