如何在按钮上添加图片(左)和文字?
为了说明:
最佳答案
在你的布局 xml 中使用 android:drawableLeft="@drawable/image"
你也可以从代码中做到这一点
Drawable icon= getContext().getResources().getDrawable( R.drawable.image);
button.setCompoundDrawablesWithIntrinsicBounds( icon, null, null, null );
关于android - 如何在按钮上添加图像(左)和文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17258386/