Textview updation
<p>I have array of 15 elements...mObjects and have 7 textviews to display. At first I am loading 7 in the TextView array and then as user goes on click text view should get update i.e. if user got the third element then it should update the 3rd Texvire with the next mObject in a list kind of manner.... My logic works with the first 7 elements populated but how will I keep on adding the elements from mObjects ......</p>

<p>to explain more : if 3rd element of textview is found then 4th textview becomes 3rd...5th becomes 4th and 7th should add the new text from mObjects .. till  the 15 elements of the array</p>

<p>here is the logic for 7 elements but not getting how will i add the 8th element to 15 element  from the mObjects</p>

<pre><code>public void onClick(View pressed){  
    boolean tvFound = false;
    for(int i=0;i&lt;mTextViews.length;i++){ 
        if(pressed.getId() == mTextViews[i]){  
            tvFound = true;  
        } 
        if(tvFound){ 
            if(i&lt;mTextViews.length-1){ 
                mTextViews[i].setText(mTextviews[i+1].getText());  
            }else{ 
                mTextViews[i].setText(""); 
            } 
        } 
    } 
} 
</code></pre>
