How to set an Android selector without write a xml?
<p>For example:</p>

<code>&lt;ImageView
          ---
            android:src=&quot;@drawable/settings_normal&quot; 
---
/&gt;
</code>

<p><br></p>

<p>Could I directly write something like src="android:state_pressed="true" ..."</p>

<p>or I just can write a selector in the xml file?</p>

<p>If anyone knows the answer it would be greatly
appreciated.  </p>
