XML attributes and their corresponding related methods
<p>I am new to Android development and am currently enjoying it a lot.</p>

<p>I have been building a UI by using the XML file and found it quite easy to build a static UI.</p>

<p>Now, I need to build a UI where one of the TextView positions changes during runtime.</p>

<p>Can this be done using XML only?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"

    &gt;
&lt;TextView
        android:layout_height="wrap_content"
        android:text="0%"
        android:layout_width="wrap_content"
        android:id="@+id/percent"
        android:textSize="15sp"
        android:layout_x="41dip"
        android:layout_y="295dip"&gt;
    &lt;/TextView&gt;

&lt;/AbsoluteLayout&gt;
</code></pre>

<p>Now I can position the TextView anywhere by changing the value of <code>layout_x</code> and <code>layout_y</code>. But how to do this at runtime?</p>

<p>I have tried this:</p>

<pre><code>TextView text;

text=(TextView)findViewById(R.id.percent);
</code></pre>

<p>Doing <code>text.setText("This can be done");</code> would easily change the text during run time, but how can I change the postion from code?</p>
