diff options
author | Tor Norbye <tnorbye@google.com> | 2011-11-20 22:12:55 +0100 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-12-22 11:43:28 -0800 |
commit | 51ff6d71ec293b76b7d770053832aa952d0889fa (patch) | |
tree | 4fb8df0f101552d43185f90691d209fdd3e14b4c /emulator | |
parent | ab36f4e7488358dea4ab6b54ee2b7bef3da0232b (diff) | |
download | sdk-51ff6d71ec293b76b7d770053832aa952d0889fa.zip sdk-51ff6d71ec293b76b7d770053832aa952d0889fa.tar.gz sdk-51ff6d71ec293b76b7d770053832aa952d0889fa.tar.bz2 |
Set android:ems="10" for EditTexts on drop
Text fields (without a text attribute) has by default only a single
character visible. To work around this, we automatically set the
layout_width to match_parent instead of wrap_content in LinearLayouts,
but in RelativeLayout and GridLayout etc (and in general) we don't
have this, so text fields show up with a not particularly usable size.
By setting the ems attribute to 10, the wrap_content size of the text
field will show 10 characters which seems like a reasonable default
(and when editing the XML or properties it's more obvious what you'd
want to modify to get a different size, if not match_parent.
Change-Id: Ic0460cea7810076b416f6d7d25a683851465ee9b
Diffstat (limited to 'emulator')
0 files changed, 0 insertions, 0 deletions