TextView setCompoundDrawables不显示
来源:互联网 发布:网达软件 股票 编辑:程序博客网 时间:2024/04/27 13:59
记录一个bug:
执行代码:
Drawable openIcon = context.getResources().getDrawable(R.drawable.drip_mail_opened);holder.timeTv.setCompoundDrawables(openIcon, null, null, null);
Icon不显示;
修改如下:
Drawable openIcon = context.getResources().getDrawable(R.drawable.drip_mail_opened);openIcon.setBounds(0, 0, 24, 24);holder.timeTv.setCompoundDrawables(openIcon, null, null, null);则Icon显示正常。
0 0
- TextView setCompoundDrawables不显示
- textview.setCompoundDrawables不显示图片
- TextView的setCompoundDrawables不显示问题解决
- Android TextView setcompounddrawables 图片不显示的问题
- setCompoundDrawables不显示图片
- setCompoundDrawables不显示图片
- android setCompoundDrawables 不显示问题
- TextView setCompoundDrawables()
- Android setcompounddrawables 无效,图片不显示
- TextView——setCompoundDrawables
- textView-setCompoundDrawables方法解析
- 关于 TextView.setCompoundDrawables() 无效
- TextView——setCompoundDrawables用法
- TextView——setCompoundDrawables用法
- TextView设置文本不显示
- android TextView 不显示文字
- ImageView加TextView可以用setCompoundDrawables代替
- TextView设置setCompoundDrawables或setCompoundDrawablesWithIntrinsicBounds区别
- 智力题:25个人,每5个人一个跑道,最少经过几次比赛,得到前三名
- wordpress主题制作教程(十):制作文章单页模板single.php
- 控制台程序如何暂停
- 【ulua入门】(3)Demo实训,一个简陋的射击游戏
- 自己用C语言写一个简易printf
- TextView setCompoundDrawables不显示
- 系统调用和库函数的区别
- Windows/Linux下C/C++内存泄露检测工具
- 推断(inference)、贝叶斯规则(Bayes's rule)与导出分布(derived distribution)
- altium designer(AD13)隐藏敷铜的方法
- 设置QQ支持临时会话
- c语言-----用循环语句实现金字塔,左对齐
- Mysql创建用户表并利用存储过程添加100万条随机用户数据
- {题解}[jzoj3864]【JSOI2014】歌剧表演