TextView用代码添加图片getDrawable过时替换

获取资源图片resources.getDrawable 一个参数的已经过时,使用二个参数的

指定添加的方向:setCompoundDrawables(左,上,右,下)

示例

TextView用代码添加图片getDrawable过时替换_第1张图片

你可能感兴趣的:(TextView用代码添加图片getDrawable过时替换)