11
I would like to understand how this attribute works (android:ems).
I saw something citing that he acts on the source of the text, but I did not understand how. I tried to do some tests, and did not notice result.
Does anyone know how he acts about a TextView?
So that’s why, because mine
layout_widthis defined as0, andlayout_weight=1000, thus being a size proportional to the space reserved to it in relation to the other components Parent. So like you said it makes no sense to use the attributeems, in my case. Right? Since it does not interfere with the font as I imagine, but rather with the width of the component to support a certain amount of characters. Still useful for other cases.– Fernando Leal
@Fernando exactly, changes the width of the component if the
layout_widthis defined aswrap_content– Math
This property then would be very interesting to use in a
EditText, that for example I want to have visible space for15characters.– Fernando Leal