我想在单个 View 中显示文本、图像。 也请帮助我 我想从我的类(class)而不是 xml 提供图像的 src 请帮助 谢谢
最佳答案
你可以为此使用Button
Button b=new Button(this);
b.setText(" Button");
b.setCompoundDrawablesWithIntrinsicBounds(null, getResources().getDrawable(R.drawable.btn_call), null, null);
关于单一 View 中的Android图像和文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6613461/