2024-08-09 23:35:47 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.BodyEnergy">
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/body_energy_date_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:layout_marginBottom="20dp"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="180dp"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:scaleType="fitStart"
|
|
|
|
android:id="@+id/body_energy_gauge" />
|
|
|
|
|
|
|
|
|
2024-09-24 10:10:02 +02:00
|
|
|
<GridLayout
|
|
|
|
android:background="@color/gauge_line_color"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:columnCount="2"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:layout_marginBottom="15dp"
|
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
style="@style/GridTile"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/body_energy_gained"
|
|
|
|
android:layout_width="wrap_content"
|
2024-08-09 23:35:47 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-24 10:10:02 +02:00
|
|
|
android:text="+ 0"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
2024-08-09 23:35:47 +02:00
|
|
|
android:layout_height="wrap_content"
|
2024-09-24 10:10:02 +02:00
|
|
|
android:text="@string/body_energy_gained"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
style="@style/GridTile"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/body_energy_lost"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="- 0"
|
|
|
|
android:textSize="20sp" />
|
2024-08-09 23:35:47 +02:00
|
|
|
|
2024-09-24 10:10:02 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/body_energy_lost"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
2024-08-09 23:35:47 +02:00
|
|
|
|
2024-09-24 10:10:02 +02:00
|
|
|
</GridLayout>
|
2024-08-09 23:35:47 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="250sp"
|
|
|
|
>
|
|
|
|
<com.github.mikephil.charting.charts.LineChart
|
|
|
|
android:id="@+id/body_energy_chart"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_weight="2" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|