google / blockly-android

Blockly for Android
Apache License 2.0
672 stars 209 forks source link

Fix inefficient layout weight #706

Closed ChrisCanCompute closed 6 years ago

ChrisCanCompute commented 6 years ago

When only a single widget in a LinearLayout defines a weight, it is more efficient to assign a width/height of 0dp to it since it will absorb all the remaining space anyway. With a declared width/height of 0dp it does not have to measure its own size first.


This change is Reviewable

AnmAtAnm commented 6 years ago
:lgtm:

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable