The doc:
TextView.setCompoundDrawablesWithIntrinsicBounds(int, int, int, int)[
] @
developer.android.com/reference/android[
^]
so your call of the method seems to be fine. Have you set a number value for the call
R.drawable.mul
? That one might not be there when you request it.
You can also use a variable first and set that one into your code to check the value while debugging:
TextView textView = new TextView() findViewById(R.id.mainList);
int iLeft = R.drawable.mul;
textView.setCompoundDrawablesWithIntrinsicBounds(iLeft, 0, 0, 0);
Other idea: When is the view added to the app? is it already existing when you're trying to draw the bound? should you update the view (graphically)?