I need to remove the line where a button was clicked from a listadapter. Preferably from within the method getView. As I do this?
<p>I have a screen like the image below.</p>

<p>http://img146.imageshack.us/img146/1452/explicacao.jpg</p>

<p>It got a TabHost Tab2 and I have a setAdapter that carries a list, within this list I have another setAdapter which has another list, as shown. need, when you press the button (Remove) this line is removed, giving place to the bottom line, that is the bottom line up .. I managed to do this usarno view.setVisibility (View.INVISIBLE), the line disappears, but the space is still there.</p>

<p>It would be interesting to do this inside the method getView () that list that have the item removed.</p>

<p>What I am doing is asking if the getView (...) in the ArrayList  object.remove == true I do </p>

<pre><code>view.setVisibility (View.INVISIBLE)
</code></pre>

<p>if not I return view;</p>

<p>More like this:</p>

<pre><code>view = convertView; 
if (view == null) { 
    LayoutInflater inflater = (LayoutInflater) context.getSystemService
        (Context.LAYOUT_INFLATER_SERVICE); 
    view = inflater.inflate
        (R.layout.lista_linhas_fiscalizacao, null); 
}

if (object.remove == false) {
    Do something ... else {}    
    view.setVisibility (View.INVISIBLE); 
}
</code></pre>

<p>Any ideas?</p>

<p>Thank you.</p>
