Thursday, February 20, 2014

android:ems attribute in EditText

The em is simply the font size.

In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in em means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in proportion.

Declarations such as 'text-indent: 1.5em' and 'margin: 1em' are extremely common in CSS.

1 comment:

  1. Did you know there is a 12 word phrase you can say to your man... that will induce intense feelings of love and instinctual appeal to you buried inside his chest?

    Because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, please and look after you with all his heart...

    12 Words Who Trigger A Man's Love Impulse

    This instinct is so built-in to a man's brain that it will drive him to work better than ever before to take care of you.

    Matter of fact, triggering this powerful instinct is absolutely binding to achieving the best possible relationship with your man that the moment you send your man one of these "Secret Signals"...

    ...You'll instantly notice him open his heart and mind to you in a way he's never experienced before and he will recognize you as the one and only woman in the galaxy who has ever truly interested him.

    ReplyDelete