Fix tools:text

This commit is contained in:
Milos Kozak 2022-05-16 15:56:00 +02:00
parent 40557697bd
commit 3d72982063
9 changed files with 88 additions and 77 deletions

View file

@ -59,7 +59,8 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
tools:text="24" />
android:text="24"
tools:ignore="HardcodedText" />
</LinearLayout>

View file

@ -117,7 +117,8 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:lines="1"
tools:text="-" />
android:text="-"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/battery_level"

View file

@ -44,8 +44,8 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="5dp"
android:gravity="center"
tools:ignore="RtlSymmetry"
tools:text="{fa-clock-o}" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="{fa-clock-o}" />
<TextView
android:id="@+id/calc_time"
@ -86,8 +86,8 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="5dp"
android:gravity="center"
tools:ignore="RtlSymmetry"
tools:text="{fa-clock-o}" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="{fa-clock-o}" />
<TextView
android:id="@+id/bolus_time"
@ -143,7 +143,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/bolus_pump"
@ -151,7 +152,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="PH" />
android:text="PH"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/bolus_invalid"
@ -188,8 +190,8 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="5dp"
android:gravity="center"
tools:ignore="RtlSymmetry"
tools:text="{fa-clock-o}" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="{fa-clock-o}" />
<TextView
android:id="@+id/carbs_time"
@ -234,7 +236,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/carbs_pump"
@ -242,7 +245,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="PH" />
android:text="PH"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/carbs_invalid"

View file

@ -44,7 +44,8 @@
android:gravity="center_vertical|end"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/time"
@ -78,7 +79,8 @@
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/invalid"

View file

@ -44,7 +44,8 @@
android:gravity="center_vertical"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/time"
@ -84,7 +85,8 @@
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:textColor="?attr/setTempButton"
tools:text="PH" />
android:text="PH"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/ns"
@ -92,7 +94,8 @@
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
</LinearLayout>

View file

@ -44,7 +44,8 @@
android:gravity="center_vertical|end"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/time"
@ -72,8 +73,8 @@
android:paddingEnd="10dp"
android:textAlignment="viewEnd"
android:textColor="?attr/setTempButton"
tools:ignore="RtlSymmetry"
tools:text="PH" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="PH" />
<TextView
android:id="@+id/ns"
@ -81,8 +82,8 @@
android:layout_height="wrap_content"
android:paddingEnd="10dp"
android:textColor="?attr/setTempButton"
tools:ignore="RtlSymmetry"
tools:text="NS" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="NS" />
</LinearLayout>

View file

@ -44,7 +44,8 @@
android:gravity="center"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/time"
@ -82,8 +83,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setExtendedButtonColor"
tools:ignore="RtlSymmetry"
tools:text="E" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="E" />
<TextView
android:id="@+id/suspend_flag"
@ -91,8 +92,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setExtendedButtonColor"
tools:ignore="RtlSymmetry"
tools:text="S" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="S" />
<TextView
android:id="@+id/emulated_suspend_flag"
@ -100,8 +101,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setExtendedButtonColor"
tools:ignore="RtlSymmetry"
tools:text="ES" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="ES" />
<TextView
android:id="@+id/super_bolus_flag"
@ -109,8 +110,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setExtendedButtonColor"
tools:ignore="RtlSymmetry"
tools:text="SB" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="SB" />
<TextView
android:id="@+id/ph"
@ -118,7 +119,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="PH" />
android:text="PH"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/ns"
@ -126,7 +128,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"

View file

@ -44,7 +44,8 @@
android:gravity="center"
android:paddingStart="10dp"
android:paddingEnd="5dp"
tools:text="{fa-clock-o}" />
android:text="{fa-clock-o}"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/time"
@ -69,8 +70,8 @@
android:layout_height="wrap_content"
android:paddingStart="5dp"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="RtlSymmetry"
tools:text="-" />
tools:ignore="HardcodedText,RtlSymmetry"
android:text="-" />
<TextView
android:id="@+id/high"
@ -103,7 +104,8 @@
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:textColor="?attr/setTempButton"
tools:text="NS" />
android:text="NS"
tools:ignore="HardcodedText" />
</LinearLayout>

View file

@ -1,16 +1,11 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="2dp"
tools:context=".plugins.general.wear.WearFragment">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/connected_device"
android:layout_width="match_parent"
@ -18,8 +13,9 @@
android:gravity="center_vertical|center_horizontal"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:text="---"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
tools:text="---" />
tools:ignore="HardcodedText" />
<com.google.android.material.button.MaterialButton
android:id="@+id/resend"
@ -45,6 +41,4 @@
android:text="@string/open_settings_on_wear"
android:textColor="?attr/treatmentButton" />
</LinearLayout>
</FrameLayout>
</LinearLayout>