TextView.setText() doesn't display until i click
<p>I have been trying to figure this out for the past couple of days.  I am not sure where the issue is.</p>

<p>I have a ListView that uses a custom cursor adapter.  The list_entry xml has 2 progressbars and a TextView.  A reference to the view is set in another class when the view is created. The other class monitors file transfer progress and sets the progressbars and the TextView.  The progressbars work perfectly but the textview kind of works.  setText gets fired but does not update the display as the progressbars.setprogress does.  It will display the text after I click anywhere on the screen.  There are no errors in logcat.  My code is below: </p>

<p>list_entrys.xml</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" &gt;
        &lt;TextView
        android:id="@+id/rowid"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="28dip" /&gt;
    &lt;TextView
        android:id="@+id/name_entry"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="28dip" /&gt;
    &lt;ProgressBar
            android:id="@+id/overallprogressbar"
            style="@android:style/Widget.ProgressBar.Horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:max="100"
            android:maxHeight="10dp"
            android:minHeight="10dp"/&gt;
     &lt;ProgressBar
            android:id="@+id/fileprogressbar"
            style="@android:style/Widget.ProgressBar.Horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:max="100"
            android:maxHeight="10dp"
            android:minHeight="10dp"/&gt;

    &lt;TextView
        android:id="@+id/statustext"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TextView"
        &gt;
    &lt;/TextView&gt;


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

<p>Main Activity</p>

<pre><code>public class Profiles extends ListActivity{


    public TextView addProfile;
    public ListView listview;
    private ProfileDB DB = new ProfileDB(this);
    private Cursor cursor = null;
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
             setContentView(R.layout.profiles);         

                listview = getListView();

                DB.open();
                cursor = DB.getAllProfiles();




                startManagingCursor(cursor);


                String[] from = new String[] {  ProfileDB.getProfileColumnName(), ProfileDB.getROWIDColumnName()  };
                int[] to = new int[] { R.id.name_entry };
                MySimpleCursorAdapter mAdapter = new MySimpleCursorAdapter(this, R.layout.list_entry, cursor, from, to);
                this.setListAdapter(mAdapter);
                listview.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {

              }
</code></pre>

<p>MyProgressMonitor</p>

<p>public class MyProgressMonitor{
    public MyProgressMonitor() {    }</p>

<pre><code>private int rowId; 

int op;
String src;
String dst;
int max;
int omax;
int count;
int ocount;

View view;
ProgressBar oprogressbar;
ProgressBar progressbar;
int[] oprogressArray;
TextView statustext;
private static Map&lt;Integer, View&gt; pbList = new HashMap&lt;Integer, View&gt;(); 
private static Map&lt;Integer, Object&gt; oprogressStatusMap = new HashMap&lt;Integer, Object&gt;();



public void setId(int rowId) {
    this.rowId = rowId;
    this.getProgressFromMap(rowId);



}


public synchronized void addOprogressStatusMap(int rowId, int[] status){
    MyProgressMonitor.oprogressStatusMap.put(rowId, status);
}

public synchronized void remOprogressStatusMap(int rowId){
    MyProgressMonitor.oprogressStatusMap.remove(rowId);
}


public synchronized void addPb(int rowId, View row){
    //this.view = view;
    MyProgressMonitor.pbList.put(rowId, row);
    Log.v("pbList = ", ""+pbList);
}
public synchronized void remPb(long pbId){
    pbList.remove(pbId);
}


private void getProgressFromMap(int rowId){
    if (oprogressStatusMap.containsKey(rowId)){
        this.oprogressArray = (int[]) MyProgressMonitor.oprogressStatusMap.get(rowId);
    }
    else{
        this.addOprogressStatusMap(rowId, new int[]{0,0});
        this.oprogressArray = (int[]) MyProgressMonitor.oprogressStatusMap.get(rowId);
    }
}


private void getWidgets() {
    // TODO Auto-generated method stub

    if(pbList.containsKey(rowId)){

       this.view = (View) pbList.get(rowId);
       this.oprogressbar = (ProgressBar) view.findViewById(R.id.overallprogressbar);
       this.progressbar = (ProgressBar) view.findViewById(R.id.fileprogressbar);
       this.statustext = (TextView) view.findViewById(R.id.statustext);

    } 
}


public void setOp(int op) {
    int oldOp = op;
    this.op = op;
        }

public void setSrc(String src) {
    String oldSrc = src;
    this.src = src;
}

public void setDst(String dst) {
    String oldDst = dst;
    this.dst = dst;
}
public void setMax(int max) {
    int oldMax = max;
    this.max = max;
}

public int getMax() {
    return this.max;
}

public int getCount() {
    return this.count;
}



public int getOcount() {
    return this.oprogressArray[0];
}

public void setOcount(int ocount){
    this.oprogressArray[0] = ocount;
}

public void setOmax(int omax){
    this.oprogressArray[1] = omax;
}

public int getOmax() {
    return this.oprogressArray[1];
}


public void init() {

    getWidgets();

    statustext.setText(""+dst);


    int omax = getOmax();
    oprogressbar.setMax(omax);  

    int max = this.getMax();


    progressbar.setMax((int)max);

    progressbar.setProgress(0);     

}

public void setCount(int count) {

        int oldCount = count;
        this.count = getCount() + count;
        setOcount(getOcount() + count);
        progressbar.setProgress(getCount());
        oprogressbar.setProgress(getOcount());

    }

public void end() { }
</code></pre>

<p>}</p>

<p>I hope this makes sense.  Any help is appreciated...</p>
