title: How to take input from SeekBar kotlin
body: <p>I am working on an android app for a review app, I'm using seeker bars to get inputs from 1-7. I have copied code from the internet that seems to be the only solution but its throwing errors and I can't work out why. </p>
  
  <p>'''</p>
  
  <pre><code>private var textview TextView;
  private var seekBar SeekBar;
  @Override
  override fun onCreate(savedInstanceState: Bundle?) {
  
  super.onCreate(savedInstanceState)
  setContentView(R.layout.activity_main)
  setSupportActionBar(toolbar)
  textview = (TextView) findViewById(R.id.q1)
  
  seekbar = (SeekBar) findViewById(R.id.q1a)
  seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
  public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser){
  progressChangedValue = progress
  }
  </code></pre>
  
  <p>'''</p>