-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QMUIQQFaceView开头添加图标问题 #940
Comments
目前对 drawbale支持确实有限,不过你可以用一个 Drawable 来 wrap 一次来控制间距
|
我尝试着用了你所提供的办法,自定义Drawable,发现效果仍如上面我遇到的,而且还有一个bug,就是当有drawable的时候,更多功能和自定义drawable会发生冲突。 |
不知道你是否方便在百忙之中能看下这个问题,因为项目面临上线,,,很抱歉, |
提供下你 QMUIQQFaceView 的构造、属性设置以及 setText 的代码? 我们也用了很多这种,但没出过问题 |
图片和文字间距的问题通过qmui_special_drawable_padding属性可以解决,再次感谢大佬,,, |
确实应该判断 res != 0 。 感谢发现问题。 |
cgspine
added a commit
that referenced
this issue
Jun 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行环境
Nexus 6
Android 5.0
2.3.0
1.x.x
具体问题描述
使用QQMUIQQFaceView实现如下效果:
然后考虑到可以把图标作为Emoji方式处理来解决。
然后重写getSpecialBoundsDrawable方法:
结果发现图片出现挤压或者是间隔过大问题,曾想通过Drawable.setBounds方法来控制drawable来解决,但都无效。
问题截图
请问有什么好的解决办法么?
Layout Inspector 文件(如何获取)
异常日志(堆栈)
The text was updated successfully, but these errors were encountered: