maxLength=”是什么意思#“长度”;是指在xml android布局文件中?
有人知道#属性值在这个xml文件中的含义吗maxLength=”是什么意思#“长度”;是指在xml android布局文件中?,android,xml,layout,android-edittext,Android,Xml,Layout,Android Edittext,有人知道#属性值在这个xml文件中的含义吗 <EditText android:id="@+id/firmaText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"
<EditText
android:id="@+id/firmaText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:ems="8"
android:textColor="@color/black"
android:textSize="14sp"
android:paddingLeft="5sp"
android:inputType="textPassword"
android:lines="1"
android:maxLength="#{longitud}"
android:text="#{pin}"/>
我知道maxLength属性的含义和用法,问题是它的值
我也认为这是一种预处理,但是,它没有编译…解决了,这是库的语法错误 感谢大家。android:maxLength 设置输入筛选器以将文本长度约束为指定的数字 必须是整数值,例如“100” 例如:android:maxLength=“6”将EditText的长度限制为6个字符
这也可能是对资源(格式为“@[package:]type:name”)或主题属性(格式为“?[package:][type:]name”)的引用包含这种类型的值。第一次在Google上搜索可能是为了某种预处理?如果不编译,它的语法会被破坏,但是你从哪里得到的文件?它是一个我必须包含在我的项目中的库而不是公共库