Calling setCompoundDrawables() doesn't display the Compound Drawable

hunterp picture hunterp · Jul 6, 2011 · Viewed 78.3k times · Source

After I call the setCompoundDrawables method, the compound Drawable is not shown..

Drawable myDrawable = getResources().getDrawable(R.drawable.btn);
btn.setCompoundDrawables(myDrawable, null, null, null);

Any thoughts?

Answer

hunterp picture hunterp · Jul 6, 2011