Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
What does ems in xml do? I saw that I was using following line in EditText. But, I never thought what it does. I was trying to check what actually it does by removing the line. I couldn't see any d...
#1: Initial revision
What does android:ems do?
What does ems in xml do? I saw that I was using following line in EditText. But, I never thought what it does. I was trying to check what actually it does by removing the line. I couldn't see any difference in my layout. <span id="code"> ```xml android:ems="10" ``` </span> Then I visited attributes.xml (AKA attrs.xml). I saw following lines. ```xml <!-- Hint text to display when the text is empty. --> <attr name="hint" format="string" /> ``` It wasn't understandable for me. Cause whenever I remove [the line](#code) then I see no difference. I still can see hints of EditText.