问题
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