How to set textview position constant in runtime?
<p>I am trying to display some textviews visible in runtime.
Here's my code:</p>

<pre><code>for (int i=0; i&lt;arrBool.length; i++) {
    arrBool[i] = r.nextBoolean();
        if(arrBool[i]==true) {                  
            textView[i].setVisibility(View.VISIBLE);
 }
}
</code></pre>

<p>When I run the application, textviews should randomly be visible. It is working, but my problem is I have set the layout of those textviews. When I run Android Application, the visible textviews go to top left corner and loses the layout position.</p>

<p>How to deal with this?</p>
