title: Kotlin - Range seekbar library
body: <p>i'm using <a href="https://github.com/syedowaisali/crystal-range-seekbar" rel="nofollow noreferrer">syedowaisali</a>'s  Range Seekbar, and i'm having trouble getting my TextView to change according to the thumb's position on the bar.</p>
  
  <p>I have the following in my Activity's <code>onCreate</code>:</p>
  
  <pre><code>    val rangeSeekbar = CrystalRangeSeekbar(this)
      rangeSeekbar.setOnRangeSeekbarChangeListener { minValue, maxValue -&gt;
          tv_rent_time_range.text = maxValue.toString()
      }
  </code></pre>
  
  <p><code>tv_rent_time_range</code> loads with the <code>maxValue</code> but it doesn't change when i move the right thumb</p>
  
  <p>In his documentation (in Java) it's suppose to look like this:</p>
  
  <pre><code>rangeSeekbar.setOnRangeSeekbarChangeListener(new OnRangeSeekbarChangeListener() {
      @Override
      public void valueChanged(Number minValue, Number maxValue) {
          tvMin.setText(String.valueOf(minValue));
          tvMax.setText(String.valueOf(maxValue));
      }
  });
  </code></pre>
  
  <p>I have a feeling i'm setting up the <code>setOnRangeSeekbarChangeListener</code> wrong in Kotlin</p>