|
- //在左侧添加图片
- Drawable drawable= getResources().getDrawable(R.drawable.gray_circle);
- drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
-
- textView.setCompoundDrawables(drawable, null, null, null);
- textView.setCompoundDrawablePadding(4);//设置图片和text之间的间距
复制代码
|
|