tools:context=".fragment.l02.L02StatusBarFragment">
<data>
+
<variable
name="phoneShow"
type="boolean" />
+
<variable
name="phoneSignal"
type="int" />
<variable
name="btStatus"
type="boolean" />
+
<variable
name="wifiStatus"
type="boolean" />
+
<variable
name="gpsStatus"
type="boolean" />
+
<variable
name="showTemp"
type="int" />
+
<variable
name="showStep"
type="int" />
+
<variable
name="showHR"
type="int" />
+
<variable
name="heartValue"
type="String" />
+
<variable
name="TempValue"
type="String" />
+
<variable
name="spo2value"
type="String" />
+
<variable
name="outTempValue"
type="String" />
<com.ic.launcher.widget.WidgetPhoneStateView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
android:layout_marginStart="10dp"
+ android:layout_marginTop="10dp"
+ app:btenabled="@{btStatus}"
+ app:gpsenabled="@{gpsStatus}"
app:netTypeDrawable="@{phoneNetType}"
+ app:phoneShow="@{phoneShow}"
app:signalDrawable="@{phoneSignal}"
app:transportDrawable="@{phoneTransport}"
- app:phoneShow="@{phoneShow}"
- app:btenabled="@{btStatus}"
- app:wifienabled="@{wifiStatus}"
- app:gpsenabled="@{gpsStatus}"/>
+ app:wifienabled="@{wifiStatus}" />
<com.ic.launcher.widget.WidgetBatteryStateView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/main_status"
android:layout_centerHorizontal="true"
- android:layout_marginTop="15dp"
+ android:layout_marginTop="10dp"
app:hourBitResId="@{hourBit}"
app:hourTenResId="@{hourTen}"
app:minuteBitResId="@{minuteBit}"
android:layout_below="@id/l02_time_image"
android:layout_centerHorizontal="true" />
- <TextView
- android:id="@+id/l02_watch_data"
- style="@style/watchDateTextStyle"
+ <LinearLayout
+ android:id="@+id/date_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
android:layout_below="@id/l02_time_image"
- android:layout_marginEnd="8dp"
- android:layout_toStartOf="@id/l02_time_sp"
- android:text="@{watchDate}" />
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:gravity="center"
+ >
+
+ <TextView
+ style="@style/watchDateTextStyle"
+ android:text="@{watchDate}"
+ android:layout_weight="1"
+ android:gravity="center"
+ />
+
+ <TextView
+ style="@style/watchDateTextStyle"
+ android:layout_weight="1"
+ android:text="@{watchWeek}"
+ android:gravity="center"
+ />
+ </LinearLayout>
- <TextView
- style="@style/watchDateTextStyle"
- android:layout_below="@id/l02_time_image"
- android:layout_marginStart="20dp"
- android:layout_toEndOf="@id/l02_time_sp"
- android:text="@{watchWeek}"/>
-
- <ImageView
- android:id="@+id/l02_temp_out"
- style="@style/watchDateIconS123Style"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_alignParentStart="true"
-
- android:src="@mipmap/outtemp" />
-
- <TextView
- android:id="@+id/l02_temp_out_value"
- style="@style/watchDateIconTextS123Style"
- android:layout_width="50dp"
- android:layout_alignParentStart="true"
-
- android:text="@{outTempValue}"
- android:textAlignment="textEnd" />
- <ImageView
- android:id="@+id/l02_heart_img"
- style="@style/watchDateIconS123Style"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_toEndOf="@id/l02_temp_out"
- android:src="@mipmap/clockl02_heartrate_icon" />
-
- <TextView
- android:id="@+id/l02_heart_value"
- style="@style/watchDateIconTextS123Style"
- android:layout_width="50dp"
- android:textAlignment="textEnd"
- android:layout_toEndOf="@id/l02_temp_out_value"
- android:text="@{heartValue}" />
-
- <ImageView
- android:id="@+id/l02_spo2_img"
- style="@style/watchDateIconS123Style"
- android:layout_toEndOf="@id/l02_heart_img"
- android:layout_width="40dp"
- android:layout_height="40dp"
-
- android:src="@mipmap/spo2" />
-
- <TextView
- android:id="@+id/l02_spo2_value"
- style="@style/watchDateIconTextS123Style"
- android:textAlignment="textEnd"
- android:layout_toEndOf="@id/l02_heart_value"
- android:layout_width="50dp"
- android:text="@{spo2value}" />
-
- <ImageView
- android:id="@+id/s123_temp_img"
- style="@style/watchDateIconS123Style"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_toEndOf="@id/l02_spo2_img"
- android:visibility="@{showTemp}"
- android:src="@mipmap/bodytemp" />
-
- <TextView
- android:id="@+id/l02_temp_value"
- style="@style/watchDateIconTextS123Style"
- android:layout_width="50dp"
- android:textAlignment="textEnd"
- android:visibility="@{showTemp}"
- android:layout_toEndOf="@id/l02_spo2_value"
- android:text="@{TempValue}" />
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_below="@+id/date_layout"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="20dp"
+ android:gravity="center">
+
+ <LinearLayout
+ android:id="@+id/img_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:orientation="horizontal">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/l02_temp_out"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_alignLeft="@+id/l02_temp_out_value"
+ android:layout_alignRight="@+id/l02_temp_out_value"
+ android:src="@mipmap/outtemp" />
+
+ <TextView
+ android:id="@+id/l02_temp_out_value"
+ style="@style/watchDateIconTextS123Style"
+ android:layout_width="match_parent"
+ android:layout_below="@+id/l02_temp_out"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:text="@{outTempValue}"
+ android:textAlignment="center" />
+
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/l02_heart_img"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_alignLeft="@+id/l02_heart_value"
+ android:layout_alignRight="@+id/l02_heart_value"
+ android:src="@mipmap/heartrate" />
+
+ <TextView
+ android:id="@+id/l02_heart_value"
+ style="@style/watchDateIconTextS123Style"
+ android:layout_width="match_parent"
+ android:layout_below="@+id/l02_heart_img"
+ android:layout_marginStart="0dp"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:text="@{heartValue}" />
+
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/l02_spo2_img"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_alignLeft="@+id/l02_spo2_value"
+ android:layout_alignRight="@+id/l02_spo2_value"
+ android:src="@mipmap/spo2" />
+
+ <TextView
+ android:id="@+id/l02_spo2_value"
+ style="@style/watchDateIconTextS123Style"
+ android:layout_width="match_parent"
+ android:layout_below="@+id/l02_spo2_img"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:text="@{spo2value}"
+ android:textAlignment="center" />
+
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/s123_temp_img"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_alignLeft="@+id/l02_temp_value"
+ android:layout_alignRight="@+id/l02_temp_value"
+ android:src="@mipmap/bodytemp"
+ android:visibility="@{showTemp}" />
+
+
+ <TextView
+ android:id="@+id/l02_temp_value"
+ style="@style/watchDateIconTextS123Style"
+ android:layout_width="match_parent"
+ android:layout_below="@+id/s123_temp_img"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:text="@{TempValue}"
+ android:textAlignment="center"
+ android:visibility="@{showTemp}" />
+ </RelativeLayout>
+ </LinearLayout>
+ </RelativeLayout>
</RelativeLayout>
</layout>
\ No newline at end of file