How to set ImageButton property of app:srcCompat="@drawable/pic" programmatically?
<p>How to set the <code>ImageButton</code> property of </p>

<pre><code>app:srcCompat="@drawable/pic"
</code></pre>

<p>programmatically?</p>

<p>Something like <code>myImageButton.setBackgroundResource(R.drawable.eng2);</code> but the property of <code>app:srcCompat</code>.</p>