Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
maxLength=”是什么意思#“长度”;是指在xml android布局文件中?_Android_Xml_Layout_Android Edittext - Fatal编程技术网

maxLength=”是什么意思#“长度”;是指在xml android布局文件中?

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"

有人知道#属性值在这个xml文件中的含义吗

<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上搜索可能是为了某种预处理?如果不编译,它的语法会被破坏,但是你从哪里得到的文件?它是一个我必须包含在我的项目中的库而不是公共库