如何计算固定高度和宽度的字符数在android中的Textview?

时间:2017-03-22 10:45:07

标签: android textview

我正在自定义书页中显示我的故事文本。当到达故事文本时,无法显示字符的最大限制,然后剩余的文本。 我正在逻辑上努力在android中获取固定大小的TextView中的字符数。

setmetatable(_G, {
__newindex = function (table, key, value)
print("key: ", key, "value: ", value)
rawset(table, key, value)
if key == "Config" then
    print("value: ", value)
    if value == nil then
        error(debug.traceback())
    end
end
end})

建议最受欢迎......

谢谢是提前

0 个答案:

没有答案