2024-09-19 20:21:50 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-07-02 17:05:10 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.charts.ActivityChartsActivity$PlaceholderFragment"
|
|
|
|
tools:ignore="UselessParent">
|
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_date_view"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<com.github.mikephil.charting.charts.PieChart
|
|
|
|
android:id="@+id/pai_chart_today"
|
|
|
|
android:layout_width="200dp"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:layout_gravity="bottom|center"
|
|
|
|
android:layout_marginBottom="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="30dp"
|
|
|
|
android:layout_weight="3"
|
|
|
|
android:shrinkColumns="*"
|
|
|
|
android:stretchColumns="*">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:id="@+id/tableRow1"
|
|
|
|
android:layout_width="fill_parent"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:weightSum="2">
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_width="0dp"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingTop="20dip"
|
|
|
|
android:paddingRight="20dip">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:background="@color/chart_activity_dark" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
<TextView
|
2024-09-19 20:21:50 +02:00
|
|
|
android:id="@+id/pai_line_today"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginTop="20dip"
|
|
|
|
android:text="@string/stats_empty_value"
|
|
|
|
android:textSize="20sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="left"
|
|
|
|
android:text="@string/activity_summary_today"
|
|
|
|
android:textSize="12sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_width="0dp"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingTop="20dip"
|
|
|
|
android:paddingRight="20dip">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:background="@color/chart_deep_sleep_light" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
<TextView
|
2024-09-19 20:21:50 +02:00
|
|
|
android:id="@+id/pai_line_total"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginTop="20dip"
|
|
|
|
android:text="@string/stats_empty_value"
|
|
|
|
android:textSize="20sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:text="@string/step_streak_total"
|
|
|
|
android:textSize="12sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
</LinearLayout>
|
2024-09-19 20:21:50 +02:00
|
|
|
</TableRow>
|
2023-07-02 17:05:10 +02:00
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
</TableLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="center|top"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center|top"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="@string/sony_speak_to_chat_sensitivity_low"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/accent"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_low_inc"
|
|
|
|
android:layout_width="wrap_content"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif-black"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="5"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_low_time"
|
|
|
|
android:layout_width="wrap_content"
|
2023-07-02 17:05:10 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="10 min"
|
|
|
|
android:textSize="16sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
</LinearLayout>
|
2023-07-02 17:05:10 +02:00
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center|top"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center|top"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="@string/stress_moderate"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/accent"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_moderate_inc"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif-black"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="5"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_moderate_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="10 min"
|
|
|
|
android:textSize="16sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
</LinearLayout>
|
2023-07-02 17:05:10 +02:00
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center|top"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center|top"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="@string/stress_high"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/accent"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_high_inc"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif-black"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="5"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pai_line_high_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="10 min"
|
|
|
|
android:textSize="16sp" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.github.mikephil.charting.charts.BarChart
|
|
|
|
android:id="@+id/pai_chart_week"
|
|
|
|
android:layout_width="fill_parent"
|
2024-09-19 20:21:50 +02:00
|
|
|
android:layout_height="300dp"
|
|
|
|
android:layout_marginBottom="25dp"
|
|
|
|
android:layout_weight="2" />
|
2023-07-02 17:05:10 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2024-09-19 20:21:50 +02:00
|
|
|
</ScrollView>
|