mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Sleep charts: Fix empty cells for devices without awake sleep
This commit is contained in:
parent
2abe7e5b2f
commit
e436946bed
@ -92,6 +92,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
style="@style/GridTile"
|
style="@style/GridTile"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
android:layout_marginBottom="0dp"
|
android:layout_marginBottom="0dp"
|
||||||
>
|
>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -129,6 +130,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
style="@style/GridTile"
|
style="@style/GridTile"
|
||||||
android:layout_marginBottom="0dp"
|
android:layout_marginBottom="0dp"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
>
|
>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
|
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
|
||||||
|
@ -76,37 +76,46 @@
|
|||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sleep_chart_legend_rem_time_wrapper"
|
|
||||||
style="@style/GridTile"
|
|
||||||
android:layout_marginBottom="0dp"
|
|
||||||
>
|
|
||||||
<View
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="5dp"
|
|
||||||
android:background="@color/chart_rem_sleep_dark"
|
|
||||||
android:layout_marginBottom="10dp"
|
|
||||||
/>
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/sleep_chart_legend_rem_time"
|
|
||||||
android:text="@string/stats_empty_value"
|
|
||||||
android:textSize="20sp"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center"/>
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/sleep_chart_legend_rem_legend"
|
|
||||||
android:text="@string/sleep_colored_stats_rem_avg"
|
|
||||||
android:textSize="12sp"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
|
|
||||||
style="@style/GridTile"
|
style="@style/GridTile"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
android:layout_marginBottom="0dp"
|
android:layout_marginBottom="0dp"
|
||||||
>
|
>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/sleep_chart_legend_rem_time_wrapper"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical"
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="5dp"
|
||||||
|
android:background="@color/chart_rem_sleep_dark"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sleep_chart_legend_rem_time"
|
||||||
|
android:text="@string/stats_empty_value"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sleep_chart_legend_rem_legend"
|
||||||
|
android:text="@string/sleep_colored_stats_rem_avg"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/GridTile"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_marginBottom="0dp"
|
||||||
|
>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
Loading…
Reference in New Issue
Block a user