Android onDraw doesn't draw anything in custom TextView when setting singleLine to true

我们两清 提交于 2019-12-23 02:01:46

问题


There is a bug when I set singleLine to true in the XML layout of my custom TextView in my project. I don't know how to fix it. Is there anyone who can help me?

github link


回答1:


Finally, I used android:maxLines="1" instead.



来源:https://stackoverflow.com/questions/33828761/android-ondraw-doesnt-draw-anything-in-custom-textview-when-setting-singleline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!