Seekbar.getRight() and Seekbar.getLeft() is returning 0
<p>I am working in android. I want to add functionality of seekbar in my application.</p>

<p>This is my xml file:-</p>

<pre><code>  &lt;SeekBar

        android:id="@+id/ProgressBar01"
        android:layout_width="fill_parent"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_height="60dp"
        android:layout_below="@+id/incentives_textViewBottemLeft"
        android:max="10"
        android:progressDrawable="@drawable/incentive_progress"
        android:secondaryProgress="0"
        android:thumb="@drawable/incentives_progress_pin" /&gt;


And this is my java code related to this seek bar. 

 mSkbSample = (SeekBar)findViewById(R.id.ProgressBar01);

  v1 = (TextView)findViewById(R.id.incentives_textViewAbove_process_pin);


v1.setText(String.valueOf(progress).toCharArray(), 0, String.valueOf(progress).length());   


 mSkbSample.setProgress(progress);


 int xPos = ((mSkbSample.getRight() - mSkbSample.getLeft()) * mSkbSample.getProgress()) / mSkbSample.getMax();

 v1.setPadding(xPos,0,0,0);   
</code></pre>

<p>I tried to print <code>mSkbSample.getRight()</code>and <code>mSkbSample.getLeft()</code>, this always returning zero.
 help me to find out what mistake i have done.</p>
