title: Setting up a SeekBar programmatically
body: <p>for a past few hours I'm trying to set a width of a SeekBar by code (it has to be set by the configuration file). I was trying to set it via <code>"seekBar[i].SetMinimumWidth(600);"</code>, I was also trying to do this with "ShapeDrawable", but it wasn't working, here is my example how I was doing that:</p>
  
  <pre><code>SeekBar sb = new SeekBar(this);
              sb.SetX(720 / 2);
              sb.SetY(1280 / 2);
              ShapeDrawable thumb = new ShapeDrawable(new OvalShape());
              thumb.SetIntrinsicHeight(64);
              thumb.SetIntrinsicWidth(600);
              sb.SetThumb(thumb);
              sb.SetBackgroundColor(new Color(255, 255, 255)); 
  </code></pre>
  
  <p>I was also thinking about some kind of style, but I'm not sure that this is possible to do this this way. How do I set a width of a seekbar by code? <br><br>
  I also have to set the min and max value of SeekBar, but i have no idea how to set those properites with code. I know, that I can simply lock it by if statment like this:</p>
  
  <pre><code>sb.ProgressChanged += (object sender, SeekBar.ProgressChangedEventArgs e) =&gt;
                  {
                      if (e.FromUser)
                      {
                         if (e.Progress &lt; localSliderMax &amp;&amp; e.Progress &gt; localSliderMin)
                           //SomeWork
                      }
                  };
  </code></pre>
  
  <p>But what if i will need for example a min value a -1, or max 255? It won't work like this. Any solution how to do this?</p>