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_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
tools:text="24" /> android:text="24"
tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,50 +1,44 @@
<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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="2dp" android:paddingTop="2dp"
tools:context=".plugins.general.wear.WearFragment"> tools:context=".plugins.general.wear.WearFragment">
<LinearLayout <TextView
android:id="@+id/connected_device"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:gravity="center_vertical|center_horizontal"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:text="---"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
tools:ignore="HardcodedText" />
<com.google.android.material.button.MaterialButton
android:id="@+id/resend"
style="@style/GrayButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawableTop="@drawable/ic_refresh"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/resend_all_data"
android:textColor="?attr/treatmentButton" />
<TextView <com.google.android.material.button.MaterialButton
android:id="@+id/connected_device" android:id="@+id/open_settings"
android:layout_width="match_parent" style="@style/GrayButton"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:gravity="center_vertical|center_horizontal" android:layout_height="match_parent"
android:paddingTop="10dp" android:layout_weight="1"
android:paddingBottom="10dp" android:drawableTop="@drawable/ic_settings"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:paddingLeft="0dp"
tools:text="---" /> android:paddingRight="0dp"
android:text="@string/open_settings_on_wear"
android:textColor="?attr/treatmentButton" />
<com.google.android.material.button.MaterialButton </LinearLayout>
android:id="@+id/resend"
style="@style/GrayButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawableTop="@drawable/ic_refresh"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/resend_all_data"
android:textColor="?attr/treatmentButton" />
<com.google.android.material.button.MaterialButton
android:id="@+id/open_settings"
style="@style/GrayButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawableTop="@drawable/ic_settings"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:text="@string/open_settings_on_wear"
android:textColor="?attr/treatmentButton" />
</LinearLayout>
</FrameLayout>