access the weight attribute in code
<p>I have the following code within my layout xml file</p>

<pre><code> &lt;RelativeLayout
    android:id="@+id/contentTextViewLayout"
    android:layout_weight="9"
    android:layout_width="fill_parent"
    android:layout_height="0dip"&gt;
    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>How do I fetch the value of layout_weight attribute of the RelativeLayout in my code?</p>
