Jump to content

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

From Android Wiki

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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.