hide widgets in listView
<p>How is possible to hide/show Layout element in all rows of listView after clicked on button. 
my code </p>

<pre><code>Button edit = (Button) findViewById(R.id.edit);
        edit.setOnClickListener(new Button.OnClickListener() {          
            public void onClick(View v) {

                LinearLayout ll = (LinearLayout)findViewById(R.id.hidden);
                if (ll.getVisibility() == View.GONE)
                    ll.setVisibility(View.VISIBLE);
                else 
                    ll.setVisibility(View.GONE);
            }
        }); 
</code></pre>

<p>But it hide only element in first row.</p>
