title: Android Listview with active buttons which change text in the row
body: <p>Hi I need help with active buttons in listview row. Idea is then i pressed button in the row it change textview. This list row must be avtivated in <strong>setOnItemLongClickListener</strong>();
  Can anyone show me example or tutorial how make something like this or some example or show there is my problem? I tired for google it and wont get answer... I new in android and sorry for my language and tnx for any help ;) 
  my Idea.</p>
  
  <pre><code>+-----------------------------------------+
  | textview | textview | textview | Button |
  +----------+----------+----------+--------+
  | textview | textview | textview | Button |
  +-----------------------------------------+
  </code></pre>
  
  <p>Then button pressed  textview become number like this:</p>
  
  <pre><code>+-----------------------------------------+
  | textview | textview | textview | Button |
  +----------+----------+----------+--------+
  | textview | textview |     1    | Button | &lt;- this button was pressed
  +-----------------------------------------+
  </code></pre>
  
  <p><strong>I made then button change it but problem is it change more rows. Like</strong> </p>
  
  <pre><code>+-----------------------------------------+
  | textview | textview | textview | Button |
  +----------+----------+----------+--------+
  | textview | textview |     1    | Button | &lt;- this button was pressed
  +-----------------------------------------+
  | textview | textview | textview | Button |
  +----------+----------+----------+--------+
  | textview | textview |     1    | Button | &lt;- this button was **not** pressed
  +----------+----------+----------+--------+
  | textview | textview | textview | Button |
  +----------+----------+----------+--------+
  | textview | textview |     1    | Button | &lt;- this button was **not** pressed
  +-----------------------------------------+
  </code></pre>
  
  <p>I'm using SimpleAdapter to get list.</p>
  
  <pre><code>ListView lv = getListView();   
  lv.setOnItemLongClickListener(listener);
  
  OnItemLongClickListener listener = new OnItemLongClickListener() {
      public boolean onItemLongClick(AdapterView&lt;?&gt; parent, final View view, int position, long id) {
          btn1 = (Button) view.findViewById(R.id.button1);
          btn1.setOnClickListener(new OnClickListener(){
              int number= 0;
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  TextView textView = (TextView) v.findViewById(R.id.textView_must_be_changed);
                  number++;
                  textView.setText(String.valueOf(number)); 
              }                   
          });
      }
  };
  </code></pre>
  
  <p>My Layout XML is </p>
  
  <pre><code>  &lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:id="@+id/gridas"
        android:layout_height="fill_parent"
        android:choiceMode="multipleChoice"
        android:columnCount="10"
        android:descendantFocusability="beforeDescendants" &gt;
  
  
        &lt;TextView
            android:id="@+id/Textview"
            android:layout_column="5"
            android:layout_columnSpan="3"
            android:layout_gravity="left|bottom"
            android:layout_row="1"
            android:layout_rowSpan="2"
            android:text="4.3 kg" /&gt;
  
        &lt;TextView
            android:id="@+id/Textview"
            android:layout_column="7"
            android:layout_gravity="left"
            android:layout_row="1"
            android:layout_rowSpan="2"
            android:text="35 cm" /&gt;
  
  
  
        &lt;TextView
            android:id="@+id/Textview"
            android:layout_width="163dp"
            android:layout_height="49dp"
            android:layout_column="9"
            android:layout_gravity="left"
            android:layout_row="2"
            android:gravity="left"
            android:text="949.00 Lt"
            android:textSize="32sp"
            android:textStyle="bold" /&gt;
  
  
  
        &lt;TextView
            android:id="@+id/**textView_must_be_changed**"
            android:layout_column="9"
            android:layout_gravity="left|top"
            android:layout_row="1"
            android:text="tekstukas"
             /&gt;
  
        &lt;Button
            android:id="@+id/button1"
            android:layout_column="9"
            android:layout_gravity="left|top"
            android:layout_row="3"
            android:text="Button" 
            android:focusable="false"
            android:focusableInTouchMode="false"/&gt;
  
    &lt;/GridLayout&gt;    
  </code></pre>