Android: Trying to change width of TextView at runtime
<p>I have a textView that I'm trying to change the size at runtime. But the size does not chnage.</p>

<p>The code in the xml file</p>

<pre><code> &lt;TextView
                android:id="@+id/textScreenWidth"
                android:layout_width="100px"
                android:layout_height="wrap_content"
                android:text=""
                android:layout_gravity="center"
                android:textColor="#ff000000"
                android:textStyle="bold"
                android:textSize="12dp"
</code></pre>

<p>code on OnCreat to change the the size</p>

<pre><code>TextView t=(TextView) findViewById(R.id.textScreenWidth); 
    t.setWidth(950);
</code></pre>

<p>the size does not change</p>
