0%

Android Tips

Android

  1. References to resources are always scoped by the resource type (such as id or string), so using the same name does not cause collisions.
  2. 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.