title: How to change pressed color to other color of selector dynamically?
body: <p>that's my selector for list:(item_selector.xml)</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_selected="true" android:drawable="@color/orange" /&gt;
      &lt;item android:state_focused="true" android:drawable="@color/orange" /&gt;
      &lt;item android:state_pressed="true" android:drawable="@color/orange" /&gt;
      &lt;item android:drawable="@color/transparent" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>that's my row of list(row_item.xml)</p>
  
  <pre><code>&lt;RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:background="@color/alarm_item_drawer_selector"
      &gt;
  
      &lt;ImageView 
          android:id="@+id/item_icon"
          android:layout_width="30dp"
          android:layout_height="30dp"
          android:layout_centerHorizontal="true"
          android:paddingTop="5dp"
          android:paddingBottom="2dp"
          android:src="@drawable/ic_launcher"/&gt;
  
      &lt;TextView      
          android:id="@+id/item_title"
          style="@style/DrawerItemTextStyle"
          android:textColor="@color/text_drawer_item_selector"
          android:layout_centerHorizontal="true"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/item_icon" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I want to change android:state_pressed="true" android:drawable="@color/orange" to other color dynamically. My goal, to make pressed color for each row different. Is it possible to do?</p>