关于android:我想在textview 最后动态添加图片. 应该怎么做

现在我只能把图片显示在文字的右边

Drawable drawable= context.getResources().getDrawable(R.anim.curplay_anim);
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
viewHolder.textView.setCompoundDrawables(null,null,drawable,null);
playingAnimation = (AnimationDrawable) viewHolder.textView.getCompoundDrawables()[2];

加了判断语句,所以是根据需求显示图片的..我应该怎么改才能显示在整个textview的最右边呢?谢谢
PS:是textview内部额

我自己已经解决了..在textview的布局里面加上 android:drawableRight="@anim/curplay_anim"

你用setCompoundDrawablesWithIntrinsicBounds这个试试,这个不用setbound,免得你搞错区域

你可以加个imageview