Translations:Android Training/Building a Simple User Interface/32/en

From Android Wiki
Revision as of 03:24, 18 December 2015 by FuzzyBot (talk | contribs) (FuzzyBot verschob die Seite Translations:Android Training/Eine einfache Benutzeroberfläche erstellen/32/en nach Translations:Android Training/Building a Simple User Interface/32/en, ohne dabei eine Weiterleitung anzulegen: Teil der übersetzba…)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To improve the layout efficiency when you specify the weight, you should change the width of the EditText to be zero (0dp). Setting the width to zero improves layout performance because using "wrap_content" as the width requires the system to calculate a width that is ultimately irrelevant because the weight value requires another width calculation to fill the remaining space.