Android: maxEms android: singleLine android: ellipsize attribute set,
But the number of characters display is very strange,
MaxEms=1, showing two English characters
MaxEms=2, according to six English characters
MaxEms=3, showing 11 English characters
Anyone know the rule of this attribute limits the number of characters?
CodePudding user response:
These properties are used together, can reach the effect you want, if you want to appear to omit, will also make room for the ellipsis, inevitably affect your character display, if you want to control word, if you want to on all these effects, then their truncation specified number of words, plus the ellipsisCodePudding user response:
Use maxLengthCodePudding user response:
MaxEMS, access to information is to specify the maximum width is the width of the letter M number,MaxLength is to limit the number of characters, choose according to your need to do