From f4ce5d3f2c83223369d2f07d3b1efd7fd1b35dc7 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Wed, 1 Jun 2022 10:05:34 +0200 Subject: [PATCH] chore: layout ignore Nested Weights warnings --- .../res/layout-notround/activity_cockpit.xml | 14 ++++++++----- .../layout-notround/activity_digitalstyle.xml | 21 ++++++++++++------- .../layout-notround/activity_steampunk.xml | 9 +++++--- .../res/layout-round/activity_cockpit.xml | 14 ++++++++----- .../layout-round/activity_digitalstyle.xml | 3 ++- .../main/res/layout-round/activity_home_2.xml | 3 ++- .../res/layout-round/activity_steampunk.xml | 9 +++++--- 7 files changed, 47 insertions(+), 26 deletions(-) diff --git a/wear/src/main/res/layout-notround/activity_cockpit.xml b/wear/src/main/res/layout-notround/activity_cockpit.xml index 9170bc9880..750cb2a80e 100644 --- a/wear/src/main/res/layout-notround/activity_cockpit.xml +++ b/wear/src/main/res/layout-notround/activity_cockpit.xml @@ -32,7 +32,8 @@ + android:layout_weight="0.47" + tools:ignore="NestedWeights" /> + android:layout_weight="0.08" + tools:ignore="NestedWeights" /> + android:layout_weight="0.35" + tools:ignore="NestedWeights" /> + tools:ignore="HardcodedText, NestedWeights" /> + android:layout_weight="0.1" + tools:ignore="NestedWeights" /> + android:orientation="horizontal" + tools:ignore="HardcodedText" /> + android:layout_weight="13.95" + tools:ignore="NestedWeights" /> + tools:ignore="SmallSp, NestedWeights" /> + android:weightSum="10" + tools:ignore="NestedWeights"> + tools:ignore="SmallSp, NestedWeights" /> + android:orientation="vertical" + tools:ignore="NestedWeights"> + tools:ignore="HardcodedText, SmallSp, NestedWeights" /> + android:gravity="center_horizontal|top" + tools:ignore="NestedWeights" /> diff --git a/wear/src/main/res/layout-notround/activity_steampunk.xml b/wear/src/main/res/layout-notround/activity_steampunk.xml index 531bf99513..fc414e9c39 100644 --- a/wear/src/main/res/layout-notround/activity_steampunk.xml +++ b/wear/src/main/res/layout-notround/activity_steampunk.xml @@ -62,7 +62,8 @@ + android:layout_weight="0.05" + tools:ignore="NestedWeights" /> + android:layout_weight="0.25" + tools:ignore="NestedWeights" /> + android:layout_weight="0.32" + tools:ignore="NestedWeights" /> + android:layout_weight="0.47" + tools:ignore="NestedWeights" /> + android:layout_weight="0.08" + tools:ignore="NestedWeights" /> + android:layout_weight="0.35" + tools:ignore="NestedWeights" /> + tools:ignore="HardcodedText, NestedWeights" /> + android:layout_weight="0.1" + tools:ignore="NestedWeights" /> + android:orientation="horizontal" + tools:ignore="HardcodedText" /> + android:layout_weight="1" + tools:ignore="NestedWeights" /> + android:layout_weight="0.05" + tools:ignore="NestedWeights" /> + android:layout_weight="0.25" + tools:ignore="NestedWeights" /> + android:layout_weight="0.32" + tools:ignore="NestedWeights" />