Drawable drawable = getResources().getDrawable(id);
textView.setText(string);
textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null);
TextView 用程序实现 android:drawableLeft=""
最新推荐文章于 2024-08-03 22:24:34 发布
Drawable drawable = getResources().getDrawable(id);
textView.setText(string);
textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null);