title: android how not to mark certain view in the row, but not the row itself in listview
body: <p>i have a <strong>listview</strong> in which each row contains a <strong>checkbox</strong> and a <strong>horizontal linearLayout</strong> right to the checkbox. the linear layout's background is a drawable, and the layout itself contains two <strong>textViews</strong> side by side (big text and small text -sometimes it is hidden tho):</p>
  
  <p><img src="https://i.stack.imgur.com/0vCYU.png" alt="this is how each row looks like:"></p>
  
  <p>What i want that when someone clicks on a row, the checkbox will flip its status, and it does.
  I never want the row itself to change color, however, what happens now is that when i click on the LinearLayout (that contains the textViews), the row itself and the linear layout changes the color to orange,</p>
  
  <p><img src="https://i.stack.imgur.com/Q3JYI.png" alt="when i click a row"></p>
  
  <p>but i want only the linearLayout with the textViews to change its color.
  I managed to do it with TextView with drwable background but here it has to be LinearLayout becuase it has to contain two textViews.</p>
  
  <p>so my question is, how do i make this heppen, meaning that when someone clicks on the linearLayout, then the LinearLayout will change its color to orange, without the line to change its color??
  Thanks!</p>
  
  <p><strong>here is my row.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout 
      android:id="@+id/LinearLayout11" 
      android:layout_height="wrap_content" 
      android:gravity="center_vertical" 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="match_parent"&gt;
      &lt;CheckBox 
          android:paddingLeft="6dp" 
          android:button="@drawable/custom_checkbox" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" 
          android:checked="true" 
          android:focusable="false" 
          android:id="@+id/interest_checkbox"&gt;
      &lt;/CheckBox&gt;
      &lt;LinearLayout 
          android:gravity="center_vertical" 
          android:layout_height="wrap_content" 
          android:layout_width="wrap_content" 
          android:id="@+id/LinearLayout12" 
          android:layout_gravity="center_horizontal" 
          android:paddingLeft="6dp" 
          android:weightSum="1" 
          android:paddingRight="6dp" 
          android:layout_marginRight="6dp" 
          android:background="@drawable/row_state"&gt;
          &lt;TextView 
              android:layout_height="wrap_content" 
              android:textColor="@android:color/black" 
              android:textAppearance="?android:attr/textAppearanceMedium" 
              android:layout_width="0dp" 
              android:layout_weight="1" 
              android:id="@+id/interest_summary" android:text="Big Text"&gt;
          &lt;/TextView&gt;
          &lt;TextView 
              android:layout_height="wrap_content" 
              android:textColor="@color/back" 
              android:gravity="left" 
              android:textAppearance="?android:attr/textAppearanceSmall" 
              android:layout_width="0dp" 
              android:id="@+id/TextView11" 
              android:layout_weight="1" 
              android:text="small text"&gt;
          &lt;/TextView&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>and here is row_state.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector 
      xmlns:android="http://schemas.android.com/apk/res/android"
      &gt;
      &lt;item 
          android:state_pressed="true"
          android:drawable="@drawable/row_clicked" 
          /&gt; &lt;!-- pressed --&gt;    
      &lt;item 
          android:state_focused="true"
          android:drawable="@android:drawable/editbox_background_normal" 
          /&gt; &lt;!-- focused --&gt;    
      &lt;item 
          android:drawable="@drawable/row" 
          /&gt; &lt;!-- default --&gt;
  &lt;/selector&gt;
  </code></pre>