Android onDraw doesn't draw anything in custom

2019-05-31 02:39发布

问题:

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.