This tag and its children can be replaced by one <TextView/> and a compound draw androidxml 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 eclipse提示: This tag and its children can be replaced by one <TextView/> and a compound drawable最后发现原来可以直接给TextView加图片.. ,通过 setCompoundDrawable 方法, 或者直接在xml中使用android:drawableLeft.、android:drawableRight等属性指定! Drawable img = getResources().getDrawable(mImageViewArray[index]); img.setBounds(0,0,img.getIntrinsicHeight()-5,img.getIntrinsicWidth()); textView.setCompoundDrawables(null, img, null, null); 安卓怎么运行后台进程 android隐藏以及显示软键盘? 安装时出现解析包错误有人知道为什么 android 关于虚拟机的安装问题(模拟器的配置,看不到虚拟机怎么回事) 测试一个小控件总提示force close? 安卓后台service锁屏运行问题 ScrollView的子控件监听不到触摸事件 初学页面跳转遇到问题求救 问一下手机网页游戏是怎么写的,能不能详细解释一下 Android 子线程更新UI问题 自定义ViewGroup内的view布局问题!困扰快一天了,求救! android 设置里面运用程序的名字怎么修改
img.setBounds(0,0,img.getIntrinsicHeight()-5,img.getIntrinsicWidth());
textView.setCompoundDrawables(null, img, null, null);