title: Android: setting maxHeight parameter programmatically for ProgressBar/SeekBar
body: <p>One can create a SeekBar in XML as follows...</p>
  
  <pre><code>&lt;SeekBar xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/bpseekbar"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="3dp"
        android:max="100"
        android:maxHeight="8dp"
        ...
  </code></pre>
  
  <p>Now I want to do this programmatically since I need to adjust maxHeight based on screen resolution (yes, I know one shouldn't do that, but I have my valid reasons for this). I have no problems with setting the parameters programmatically except that I can't find out how to set maxHeight. I feel like I need to use Attributes but I couldn't find exactly how. Any hints?</p>