jjzjj

maxLineHeight

全部标签

安卓 TextView : Getting "W/StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1" when setting text

我根据计时器每0.5秒在TextView上设置一些文本。每次,当计时器运行并设置文本时,我都会在控制台中收到此警告消息。W/StaticLayout:maxLineHeightshouldnotbe-1.maxLines:1lineCount:1XML代码:Java代码:publicvoidsetProgress(){//setProgress()calledevery0.5seconds//HardcodedtextmTimeText.setText("0:05");} 最佳答案 回答我自己的问题。注意我有两个TextView的t

安卓 TextView : Getting "W/StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1" when setting text

我根据计时器每0.5秒在TextView上设置一些文本。每次,当计时器运行并设置文本时,我都会在控制台中收到此警告消息。W/StaticLayout:maxLineHeightshouldnotbe-1.maxLines:1lineCount:1XML代码:Java代码:publicvoidsetProgress(){//setProgress()calledevery0.5seconds//HardcodedtextmTimeText.setText("0:05");} 最佳答案 回答我自己的问题。注意我有两个TextView的t