解决方案 »

  1.   

    eclipse提示:  This tag and its children can be replaced by one <TextView/>  and a compound drawable最后发现原来可以直接给TextView加图片.. ,通过 setCompoundDrawable 方法, 或者直接在xml中使用android:drawableLeft.、android:drawableRight等属性指定!
      

  2.   

    Drawable img = getResources().getDrawable(mImageViewArray[index]);
    img.setBounds(0,0,img.getIntrinsicHeight()-5,img.getIntrinsicWidth()); 
    textView.setCompoundDrawables(null, img, null, null);