setCompoundDrawables

public static void setCompoundDrawables(TextView textView, int gravity, int resId)

Sets compound drawables on a TextView using setCompoundDrawablesRelative.

Parameters

textView

the TextView

gravity

only supports Gravity.START, Gravity.TOP, Gravity.END, or Gravity.BOTTOM

resId

drawable resource ID