android - maxLength ="#length"在 xml android 布局文件中意味着什么?

标签 android xml layout android-edittext

有人知道这个 xml 文件中的#attribute 值是什么意思吗?

<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 ="#length"在 xml android 布局文件中意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38866577/

相关文章:

android - 无法启动 Activity - Activity 销毁历史记录超时

android - Firebase Crashlytics 有替代品吗?

java - 如何将对象的当前状态保存到 Servlet 的上下文路径或从 Servlet 的上下文路径获取对象的当前状态

css - Bootstrap NavBar 不可折叠的输入字段

android - 在布局中指定相对位置?

android - 在 Android 构建中访问 Gradle 命令行 -P 变量

android - 调用 USSD 代码?

java - 如何使用 XSL 排列数据

xml - 在两个命名空间中解码具有相同属性名称的 XML 属性

Android (Xamarin) linearlayout 布局 :weight not working as intended