<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:id="@+id/sleep_date"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:gravity="center"
|
android:textSize="20sp" />
|
|
<TextView
|
android:id="@+id/sleepchart_info"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="@string/stats_empty_value"
|
android:textSize="12sp" />
|
|
<ImageView
|
android:layout_weight="2"
|
android:layout_marginTop="15dp"
|
android:layout_marginBottom="10dp"
|
android:id="@+id/sleep_stages_gauge"
|
android:layout_width="180dp"
|
android:layout_height="180dp"
|
android:layout_gravity="center"
|
android:scaleType="fitStart" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<GridLayout
|
android:background="@color/gauge_line_color"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:columnCount="2"
|
>
|
<LinearLayout
|
style="@style/GridTile"
|
android:layout_marginBottom="0dp"
|
>
|
<View
|
android:layout_width="fill_parent"
|
android:layout_height="5dp"
|
android:background="@color/chart_deep_sleep_dark"
|
android:layout_marginBottom="10dp"
|
/>
|
<TextView
|
android:id="@+id/sleep_chart_legend_deep_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/stats_empty_value"
|
android:textSize="20sp" />
|
|
<TextView
|
android:id="@+id/sleep_chart_legend_deep_legend"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/sleep_colored_stats_deep"
|
android:textSize="12sp" />
|
</LinearLayout>
|
<LinearLayout
|
style="@style/GridTile"
|
android:layout_marginBottom="0dp"
|
>
|
<View
|
android:layout_width="fill_parent"
|
android:layout_height="5dp"
|
android:background="@color/chart_light_sleep_dark"
|
android:layout_marginBottom="10dp"
|
/>
|
|
<TextView
|
android:id="@+id/sleep_chart_legend_light_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/stats_empty_value"
|
android:textSize="20sp" />
|
|
<TextView
|
android:id="@+id/sleep_chart_legend_light_legend"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/sleep_colored_stats_light"
|
android:textSize="12sp" />
|
</LinearLayout>
|
<LinearLayout
|
style="@style/GridTile"
|
android:layout_height="fill_parent"
|
android:layout_marginBottom="0dp"
|
>
|
<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:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="@string/stats_empty_value"
|
android:textSize="20sp" />
|
|
<TextView
|
android:id="@+id/sleep_chart_legend_rem_legend"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="@string/sleep_colored_stats_rem"
|
android:textSize="12sp" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
style="@style/GridTile"
|
android:layout_marginBottom="0dp"
|
android:layout_height="fill_parent"
|
>
|
<LinearLayout
|
android:id="@+id/sleep_chart_legend_awake_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_awake_sleep_dark"
|
android:layout_marginBottom="10dp"
|
/>
|
<TextView
|
android:id="@+id/sleep_chart_legend_awake_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/stats_empty_value"
|
android:textSize="20sp" />
|
|
<TextView
|
android:id="@+id/sleep_chart_legend_awake_legend"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/abstract_chart_fragment_kind_awake_sleep"
|
android:textSize="12sp" />
|
</LinearLayout>
|
</LinearLayout>
|
</GridLayout>
|
</LinearLayout>
|
|
<com.github.mikephil.charting.charts.LineChart
|
android:id="@+id/sleepchart"
|
android:layout_width="fill_parent"
|
android:layout_height="300dp"
|
android:layout_marginTop="15dp"
|
android:layout_marginBottom="25dp"
|
android:layout_weight="4" />
|
|
<GridLayout
|
android:background="@color/gauge_line_color"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:columnCount="2"
|
android:rowCount="2"
|
android:layout_marginBottom="15dp"
|
>
|
<LinearLayout
|
android:layout_marginTop="2dp"
|
android:layout_marginEnd="1dp"
|
style="@style/GridTile"
|
>
|
<TextView
|
android:id="@+id/sleep_hr_lowest"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0"
|
android:textSize="20sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/stats_lowest_hr"
|
android:textSize="12sp" />
|
</LinearLayout>
|
<LinearLayout
|
android:layout_marginTop="2dp"
|
android:layout_marginStart="1dp"
|
style="@style/GridTile"
|
>
|
<TextView
|
android:id="@+id/sleep_hr_highest"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0"
|
android:textSize="20sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/stats_highest_hr"
|
android:textSize="12sp" />
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/sleep_chart_legend_movement_intensity_wrapper"
|
android:layout_marginBottom="2dp"
|
android:layout_marginEnd="1dp"
|
style="@style/GridTile"
|
>
|
|
<TextView
|
android:id="@+id/sleep_movement_intensity"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0"
|
android:textSize="20sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/movement_intensity"
|
android:textSize="12sp" />
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/sleep_chart_legend_dummy_tile"
|
android:layout_marginBottom="2dp"
|
android:layout_marginStart="1dp"
|
style="@style/GridTile"
|
/>
|
</GridLayout>
|
|
|
</LinearLayout>
|
</ScrollView>
|