[Fix] Lint error: Nested Layout Weights
Is bad to performance to use non-zero layout_weight in nested LinearLayouts whose parent has a layout_weight too.
The solution was to add a new parent without layout_weight. Just with weightSum=1.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="horizontal"
android:baselineAligned="false"
+ android:orientation="horizontal"
android:weightSum="1">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="start"
+ android:layout_marginEnd="16dp"
android:layout_marginLeft="16dp"
+ android:layout_marginRight="16dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
- android:layout_marginRight="16dp"
- android:layout_marginEnd="16dp"
android:layout_weight="0.4">
<FrameLayout
android:layout_gravity="center"
android:layout_marginTop="12dp"
android:layout_weight="0.15"
- android:orientation="horizontal"
+ android:orientation="horizontal">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:weightSum="1">
<com.mercadopago.customviews.MPTextView
</LinearLayout>
</LinearLayout>
+ </LinearLayout>
</FrameLayout>
<ImageView
