Experimental: this API is experimental and might be changed or removed in the future.

TextField.maxLength

切换到手册
public int maxLength ;

描述

此文本字段可容纳的最大字符数。0 表示没有限制。