Drawable drawable = getResources().getDrawable(R.drawable.find_zan_noclick);
drawable.setBounds(0, 0, 25, 25);//第一0是距左边距离,第二0是距上边距离,40分别是长宽
textView.setCompoundDrawables(drawable, null, null, null);//只放左边
textView.setCompoundDrawablePadding(10);
textView.setText("123");
drawable.setBounds(0, 0, 25, 25);//第一0是距左边距离,第二0是距上边距离,40分别是长宽
textView.setCompoundDrawables(drawable, null, null, null);//只放左边
textView.setCompoundDrawablePadding(10);
textView.setText("123");