What does ems mean in Android text view?

Asked 2 years ago, Updated 2 years ago, 153 views

If you look at the document, android:ems setEms(int) It looks like this.

Makes the TextView be exactly this many ems wide.

It's in English, but I don't know what it means.

android android-textview

2022-09-21 20:16

1 Answers

Android:ems or setEms(n) sets the width of the character to fit the width, regardless of the actual string size. Ems only applies when layout_width is wrap_content.


2022-09-21 20:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.