drawable跟随TextView居中.zip
你只需要这添加这两个文件就可以使用了! deadline/DrawableTextView.java res/values/attrs.xml ###代码中这样设置即可 drawable = ContextCompat.getDrawable(getContext(), R.mipmap.xxx); setDrawable(DrawableTextView.LEFT, drawable, width, height); Customizable attributes xml中定义了以下属性 Define xmlns:app="http://schemas.android.com/apk/
下载地址
用户评论