First Character on TextView
<p>I have a listview and inside it is a texview. Sometimes only the first character is displayed. And when I refresh the view, the whole word appears. Has anyone experience this? How do I fix this bug? Thanks in advance</p>

<p>Here is my code:</p>

<pre><code>ListView tasksList = (ListView) findViewById(R.id.tasks_list);
tasksListAdapter = new SimpleAdapter(this, tasksListItems, R.layout.advanced_view_row,
        new String[] {LIST_ADAPTER_APPLICATION_ICON, LIST_ADAPTER_KEY_NAME, LIST_ADAPTER_KEY_RECEIVED, LIST_ADAPTER_KEY_SENT}, 
        new int[] {R.id.application_icon, R.id.process_name, R.id.received, R.id.sent}
)
{
    @Override
    @SuppressWarnings("unchecked")
    public View getView(int position, View convertView, ViewGroup parent)
    {
        if (convertView == null)
        {
            convertView = LayoutInflater.from(parent.getContext()).
            inflate(R.layout.advanced_view_row, parent, false);
        }

        HashMap&lt;String, Object&gt; item = (HashMap&lt;String, Object&gt;)this.getItem(position);

        ((ImageView) convertView.findViewById(R.id.application_icon)).setImageDrawable((Drawable) item.get(LIST_ADAPTER_APPLICATION_ICON));
        ((TextView) convertView.findViewById(R.id.process_name)).setText((String) item.get(LIST_ADAPTER_KEY_NAME));
        ((TextView) convertView.findViewById(R.id.received)).setText((String) item.get(LIST_ADAPTER_KEY_RECEIVED));
        ((TextView) convertView.findViewById(R.id.sent)).setText((String) item.get(LIST_ADAPTER_KEY_SENT));

        return convertView;
    };
};
tasksList.setAdapter(tasksListAdapter);


&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TableLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:paddingTop="5dip"
    android:paddingBottom="5dip"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"&gt;
    &lt;TableRow&gt;
        &lt;TextView 
            android:id="@+id/status"
            android:layout_height="fill_parent"
            android:layout_width="0dip"
            android:layout_weight="0.01"/&gt; 
        &lt;ImageView 
            android:id="@+id/application_icon"
            android:layout_width="32dip"
            android:layout_height="32dip"
            android:layout_weight="0.09"/&gt; 
        &lt;TextView
            android:id="@+id/process_name"
            android:layout_height="wrap_content"
            android:layout_width="0dip"
            android:layout_weight="0.4"/&gt;
        &lt;TextView 
            android:id="@+id/received"
            android:layout_height="wrap_content"
            android:layout_width="0dip"
            android:layout_weight="0.25"
            android:gravity="right"/&gt;
        &lt;TextView 
            android:id="@+id/sent"
            android:layout_height="wrap_content"
            android:layout_width="0dip"
            android:layout_weight="0.25"
            android:gravity="right"/&gt;
    &lt;/TableRow&gt;    
&lt;/TableLayout&gt;
</code></pre>
