title: Android: Changing Visibility of an item inside all listview rows
body: <p>I have a ListView in my application which can, after user requests it, be re-arrangeable via the drag of an imageview at the start of each listview's row. I present the user with the listview in a small window, and in order to maximize the space, I set the visibility of the drag view as GONE, and plan on only setting it to Visible when user selects a menu item that calls for Edit List Items. </p>
  
  <p>Here's the layout for a row item: </p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="?android:attr/activatedBackgroundIndicator"
  android:orientation="horizontal" &gt;
  
  &lt;ImageView
      android:id="@id/drag_handle"
      android:layout_width="32dp"
      android:layout_height="32dp"
      android:layout_margin="8dp"
      android:visibility="gone"
      android:src="@drawable/ic_drag_dots_holo_dark" /&gt;
  
  &lt;View
      android:layout_width="1dp"
      android:layout_height="match_parent"
      android:layout_marginBottom="16dp"
      android:layout_marginTop="16dp"
      android:background="?android:attr/dividerVertical" /&gt;
  
      &lt;TextView
          android:id="@+id/drag_n_drop_title"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingLeft="8dp"
          android:paddingRight="8dp"
          android:maxLines="1"
          android:minHeight="24dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:textColor="?android:attr/textColorPrimary" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here's the code for the menu selection: </p>
  
  <pre><code>    @Override
  public boolean onContextItemSelected(MenuItem item) {
      switch (item.getItemId()) {
      case R.id.menu_edit_playlist:
          if (inEditMode) {
              //If we are already showing the drag view, hide it. 
              inEditMode = false;                             
              findViewById(R.id.drag_handle).setVisibility(View.GONE);
          }
          else {
              //If the drag view is hidden, make it visible. 
              inEditMode = true;
              findViewById(R.id.drag_handle).setVisibility(View.VISIBLE);
          }                       
          return true;
      default:
          return super.onContextItemSelected(item);
      }
  }
  </code></pre>
  
  <p>The problem with this code, is that when I call <code>setVisibility()</code> it only changes the visibility of the drag view on the firstmost item of the listview, and the dragview on all other rows remains hidden. </p>
  
  <p>What would I do to make ALL dragViews on all rows visible in this case? </p>
  
  <p><strong>EDIT</strong>
  Here's an <a href="https://www.dropbox.com/s/64bucsxrgw8stks/Screenshot_2013-02-14-06-18-57.png" rel="nofollow">image</a> of how I want it to look after pressing edit, and here's an <a href="https://www.dropbox.com/s/9kurlq0m4o6wz2l/Screenshot_2013-02-14-06-21-47.png" rel="nofollow">image</a> of how it looks right now, with the code above. </p>
  
  <p>Thanks!</p>