Does someone knows what the #attribute value means in this xml file?
<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}"/>
I know the meaning and use of the maxLength attribute, the problem is the value it have.
I also think is a kind of preprocessing, but, it doesnt compile...
Solved, it was a syntax error of the library.
Thanks to all.
android:maxLength
Set an input filter to constrain the text length to the specified number.
Must be an integer value, such as "100".
For Example : android:maxLength="6" limits the length of the EditText to 6 characters.
This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.