Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何向按钮对象添加“可绘制左侧”图标?
我的意思是这样的:
Button button = new Button(); button.setDrawableLeft(R.drawable...);
Button.setCompoundDrawablesWithIntrinsicBounds(..)与android:drawableLeft属性相关的使用。
Button.setCompoundDrawablesWithIntrinsicBounds(..)