Dear All,

I was using setEms() to set the width of a text
field. But the text field looks much to wide for
me. So I went into the source code and looked
what is really happening there, and it seems
that Ems is equated with LineHeight:

android.widget.TextView:

             if (mMaxWidthMode == EMS) {
                 width = Math.min(width, mMaxWidth * getLineHeight());
             } else {
                 width = Math.min(width, mMaxWidth);
             }

How would one go about, and use a more
reliable measure. For example to display a
text field with a fixed count of digits?

Bye

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to