【发布时间】:2016-12-16 10:25:51
【问题描述】:
有人知道这个 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属性的含义和用途,问题是它的值。
我也认为是一种预处理,但是,它不编译...
【问题讨论】:
-
一开始在google上搜索
-
可能是为了某种预处理?
-
如果它不能编译,那就是语法错误,但是你从哪里得到文件?
-
这是一个我必须包含在我的项目中的库
-
不是公共图书馆
标签: android xml layout android-edittext