Elimination of warning message “nested weights are bad for performance”

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

When a layout is nested, both the parent layout and the child layout are nested android:layout_ When it is not necessary to use it, a warning message as shown in the title will appear. According to the actual situation, remove the unnecessary information in the sub layout android:layout_ weight。

Similar Posts: